HE: Add HE 6 GHz Band Capabilities into ieee802_11_parse_elems()

Handle 6 GHz band capability element parsing for association.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
This commit is contained in:
Rajkumar Manoharan 2020-04-24 15:45:36 -07:00 committed by Jouni Malinen
parent b2c0b83c66
commit 88911a0aa4
2 changed files with 6 additions and 0 deletions

View file

@ -294,6 +294,11 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
elems->short_ssid_list = pos;
elems->short_ssid_list_len = elen;
break;
case WLAN_EID_EXT_HE_6GHZ_BAND_CAP:
if (elen < sizeof(struct ieee80211_he_6ghz_band_cap))
break;
elems->he_6ghz_band_cap = pos;
break;
default:
if (show_errors) {
wpa_printf(MSG_MSGDUMP,

View file

@ -113,6 +113,7 @@ struct ieee802_11_elems {
const u8 *he_capabilities;
const u8 *he_operation;
const u8 *short_ssid_list;
const u8 *he_6ghz_band_cap;
u8 ssid_len;
u8 supp_rates_len;