mac80211: support extended channel switch
Support extended channel switch when the operating class is one of the global operating classes as defined in Annex E of 802.11-2012. If it isn't, disconnect from the AP instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -863,6 +863,13 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
|
||||
}
|
||||
elems->ch_switch_ie = (void *)pos;
|
||||
break;
|
||||
case WLAN_EID_EXT_CHANSWITCH_ANN:
|
||||
if (elen != sizeof(struct ieee80211_ext_chansw_ie)) {
|
||||
elem_parse_failed = true;
|
||||
break;
|
||||
}
|
||||
elems->ext_chansw_ie = (void *)pos;
|
||||
break;
|
||||
case WLAN_EID_COUNTRY:
|
||||
elems->country_elem = pos;
|
||||
elems->country_elem_len = elen;
|
||||
|
Reference in New Issue
Block a user