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
4260 * allowed for peer-to-peer or adhoc communication under the control4260 * allowed for peer-to-peer or adhoc communication under the control
4261 * of a DFS master which operates on the same channel (FCC-594280 D014261 * of a DFS master which operates on the same channel (FCC-594280 D01
4262 * Section B.3). Should be used together with %NL80211_RRF_DFS only.4262 * 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
4263 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number4267 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
4264 * currently defined4268 * currently defined
4265 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use4269 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
@@ -4300,6 +4304,8 @@ enum nl80211_frequency_attr { · 34 unmodified lines
4300 NL80211_FREQUENCY_ATTR_NO_EHT,4304 NL80211_FREQUENCY_ATTR_NO_EHT,
4301 NL80211_FREQUENCY_ATTR_PSD,4305 NL80211_FREQUENCY_ATTR_PSD,
4302 NL80211_FREQUENCY_ATTR_DFS_CONCURRENT,4306 NL80211_FREQUENCY_ATTR_DFS_CONCURRENT,
4307 NL80211_FREQUENCY_ATTR_NO_UHB_VLP_CLIENT,
4308 NL80211_FREQUENCY_ATTR_NO_UHB_AFC_CLIENT,
4303 4309
4304 /* keep last */4310 /* keep last */
4305 __NL80211_FREQUENCY_ATTR_AFTER_LAST,4311 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
@@ -4509,6 +4515,8 @@ enum nl80211_sched_scan_match_attr { · 203 unmodified lines
4509 peer-to-peer or adhoc communication under the control of a DFS master4515 peer-to-peer or adhoc communication under the control of a DFS master
4510 which operates on the same channel (FCC-594280 D01 Section B.3).4516 which operates on the same channel (FCC-594280 D01 Section B.3).
4511 Should be used together with %NL80211_RRF_DFS only.4517 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
4512 */4520 */
4513enum nl80211_reg_rule_flags {4521enum nl80211_reg_rule_flags {
4514 NL80211_RRF_NO_OFDM = 1<<0,4522 NL80211_RRF_NO_OFDM = 1<<0,
@@ -4531,6 +4539,8 @@ enum nl80211_reg_rule_flags { · 16 unmodified lines
4531 NL80211_RRF_NO_EHT = 1<<19,4539 NL80211_RRF_NO_EHT = 1<<19,
4532 NL80211_RRF_PSD = 1<<20,4540 NL80211_RRF_PSD = 1<<20,
4533 NL80211_RRF_DFS_CONCURRENT = 1<<21,4541 NL80211_RRF_DFS_CONCURRENT = 1<<21,
4542 NL80211_RRF_NO_UHB_VLP_CLIENT = 1<<22,
4543 NL80211_RRF_NO_UHB_AFC_CLIENT = 1<<23,
4534};4544};
4535 4545
4536#define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR4546#define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR
@@ -5086,9 +5096,12 @@ enum nl80211_bss_use_for { · 549 unmodified lines
5086 * BSS isn't possible5096 * BSS isn't possible
5087 * @NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY: NSTR nonprimary links aren't5097 * @NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY: NSTR nonprimary links aren't
5088 * supported by the device, and this BSS entry represents one.5098 * 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.
5089 */5101 */
5090enum nl80211_bss_cannot_use_reasons {5102enum nl80211_bss_cannot_use_reasons {
5091 NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1 << 0,5103 NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1 << 0,
5104 NL80211_BSS_CANNOT_USE_UHB_PWR_MISMATCH = 1 << 1,
5092};5105};
5093 5106
5094/**5107/**

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