History

wifi: cfg80211: save power spectral density(psd) of regulatory rule

6 GHz regulatory domains introduces Power Spectral Density (PSD). The PSD value of the regulatory rule should be taken into effect for the ieee80211_channels falling into that particular regulatory rule. Save the values in the channel which has PSD value and add nl80211 attributes accordingly to handle it.

Wen Gong committed 3 years ago

Commit ddd7f451 parent 9c386915 files · +41 −1Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+9−0
@@ -4215,6 +4215,8 @@ enum nl80211_wmm_rule { · 4214 unmodified lines
42154215 * as the primary or any of the secondary channels isn't possible
42164216 * @NL80211_FREQUENCY_ATTR_NO_EHT: EHT operation is not allowed on this channel
42174217 * in current regulatory domain.
4218+ * @NL80211_FREQUENCY_ATTR_PSD: Power spectral density (in dBm) that
4219+ * is allowed on this channel in current regulatory domain.
42184220 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
42194221 * currently defined
42204222 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
@@ -4253,6 +4255,7 @@ enum nl80211_frequency_attr { · 32 unmodified lines
42534255 NL80211_FREQUENCY_ATTR_16MHZ,
42544256 NL80211_FREQUENCY_ATTR_NO_320MHZ,
42554257 NL80211_FREQUENCY_ATTR_NO_EHT,
4258+ NL80211_FREQUENCY_ATTR_PSD,
42564259
42574260 /* keep last */
42584261 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
@@ -4353,6 +4356,8 @@ enum nl80211_reg_type { · 94 unmodified lines
43534356 * a given frequency range. The value is in mBm (100 * dBm).
43544357 * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
43554358 * If not present or 0 default CAC time will be used.
4359+ * @NL80211_ATTR_POWER_RULE_PSD: power spectral density (in dBm).
4360+ * This could be negative.
43564361 * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
43574362 * currently defined
43584363 * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
@@ -4370,6 +4375,8 @@ enum nl80211_reg_rule_attr { · 11 unmodified lines
43704375
43714376 NL80211_ATTR_DFS_CAC_TIME,
43724377
4378+ NL80211_ATTR_POWER_RULE_PSD,
4379+
43734380 /* keep last */
43744381 __NL80211_REG_RULE_ATTR_AFTER_LAST,
43754382 NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
@@ -4453,6 +4460,7 @@ enum nl80211_sched_scan_match_attr { · 77 unmodified lines
44534460 * @NL80211_RRF_NO_HE: HE operation not allowed
44544461 * @NL80211_RRF_NO_320MHZ: 320MHz operation not allowed
44554462 * @NL80211_RRF_NO_EHT: EHT operation not allowed
4463+ * @NL80211_RRF_PSD: Ruleset has power spectral density value
44564464 */
44574465 enum nl80211_reg_rule_flags {
44584466 NL80211_RRF_NO_OFDM = 1<<0,
@@ -4473,6 +4481,7 @@ enum nl80211_reg_rule_flags { · 14 unmodified lines
44734481 NL80211_RRF_NO_HE = 1<<17,
44744482 NL80211_RRF_NO_320MHZ = 1<<18,
44754483 NL80211_RRF_NO_EHT = 1<<19,
4484+ NL80211_RRF_PSD = 1<<20,
44764485 };
44774486
44784487 #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t