mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mac80211: HE: add Spatial Reuse element parsing support
Add support to mac80211 for parsing SPR elements as per P802.11ax_D4.0 section 9.4.2.241. Signed-off-by: Shashidhar Lakkavalli <[email protected]> Signed-off-by: John Crispin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
3d07ffcaf3
commit
ef11a931bd
3 changed files with 54 additions and 0 deletions
|
|
@ -1480,6 +1480,7 @@ struct ieee802_11_elems {
|
|||
const struct ieee80211_meshconf_ie *mesh_config;
|
||||
const u8 *he_cap;
|
||||
const struct ieee80211_he_operation *he_operation;
|
||||
const struct ieee80211_he_spr *he_spr;
|
||||
const struct ieee80211_mu_edca_param_set *mu_edca_param_set;
|
||||
const u8 *uora_element;
|
||||
const u8 *mesh_id;
|
||||
|
|
|
|||
|
|
@ -1240,6 +1240,10 @@ _ieee802_11_parse_elems_crc(const u8 *start, size_t len, bool action,
|
|||
WLAN_EID_EXT_MULTIPLE_BSSID_CONFIGURATION &&
|
||||
elen == 3) {
|
||||
elems->mbssid_config_ie = (void *)&pos[1];
|
||||
} else if (pos[0] == WLAN_EID_EXT_HE_SPR &&
|
||||
elen >= sizeof(*elems->he_spr) &&
|
||||
elen >= ieee80211_he_spr_size(&pos[1])) {
|
||||
elems->he_spr = (void *)&pos[1];
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue