History

wifi: cfg80211: handle UHB AP and STA power type

UHB AP send supported power type(LPI, SP, VLP) in beacon and probe response IE and STA should connect to these AP only if their regulatory support the AP power type. Beacon/Probe response are reported to userspace with reason "STA regulatory not supporting to connect to AP based on transmitted power type" and it should not connect to AP.

Mukesh Sisodiya committed 2 years ago

Commit 645f3d81 parent 99b68776 files · +68 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+13−0
@@ -4260,6 +4260,10 @@ enum nl80211_wmm_rule { · 4259 unmodified lines
42604260 * allowed for peer-to-peer or adhoc communication under the control
42614261 * of a DFS master which operates on the same channel (FCC-594280 D01
42624262 * Section B.3). Should be used together with %NL80211_RRF_DFS only.
4263+ * @NL80211_FREQUENCY_ATTR_NO_UHB_VLP_CLIENT: Client connection to VLP AP
4264+ * not allowed using this channel
4265+ * @NL80211_FREQUENCY_ATTR_NO_UHB_AFC_CLIENT: Client connection to AFC AP
4266+ * not allowed using this channel
42634267 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
42644268 * currently defined
42654269 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
@@ -4300,6 +4304,8 @@ enum nl80211_frequency_attr { · 34 unmodified lines
43004304 NL80211_FREQUENCY_ATTR_NO_EHT,
43014305 NL80211_FREQUENCY_ATTR_PSD,
43024306 NL80211_FREQUENCY_ATTR_DFS_CONCURRENT,
4307+ NL80211_FREQUENCY_ATTR_NO_UHB_VLP_CLIENT,
4308+ NL80211_FREQUENCY_ATTR_NO_UHB_AFC_CLIENT,
43034309
43044310 /* keep last */
43054311 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
@@ -4509,6 +4515,8 @@ enum nl80211_sched_scan_match_attr { · 203 unmodified lines
45094515 peer-to-peer or adhoc communication under the control of a DFS master
45104516 which operates on the same channel (FCC-594280 D01 Section B.3).
45114517 Should be used together with %NL80211_RRF_DFS only.
4518+ * @NL80211_RRF_NO_UHB_VLP_CLIENT: Client connection to VLP AP not allowed
4519+ * @NL80211_RRF_NO_UHB_AFC_CLIENT: Client connection to AFC AP not allowed
45124520 */
45134521 enum nl80211_reg_rule_flags {
45144522 NL80211_RRF_NO_OFDM = 1<<0,
@@ -4531,6 +4539,8 @@ enum nl80211_reg_rule_flags { · 16 unmodified lines
45314539 NL80211_RRF_NO_EHT = 1<<19,
45324540 NL80211_RRF_PSD = 1<<20,
45334541 NL80211_RRF_DFS_CONCURRENT = 1<<21,
4542+ NL80211_RRF_NO_UHB_VLP_CLIENT = 1<<22,
4543+ NL80211_RRF_NO_UHB_AFC_CLIENT = 1<<23,
45344544 };
45354545
45364546 #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR
@@ -5086,9 +5096,12 @@ enum nl80211_bss_use_for { · 549 unmodified lines
50865096 * BSS isn't possible
50875097 * @NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY: NSTR nonprimary links aren't
50885098 * supported by the device, and this BSS entry represents one.
5099+ * @NL80211_BSS_CANNOT_USE_UHB_PWR_MISMATCH: STA is not supporting
5100+ * the AP power type (SP, VLP, AP) that the AP uses.
50895101 */
50905102 enum nl80211_bss_cannot_use_reasons {
50915103 NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1 << 0,
5104+ NL80211_BSS_CANNOT_USE_UHB_PWR_MISMATCH = 1 << 1,
50925105 };
50935106
50945107 /**

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