]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Add HE 6 GHz Band Capabilities into ieee802_11_parse_elems()
authorRajkumar Manoharan <rmanohar@codeaurora.org>
Fri, 24 Apr 2020 22:45:36 +0000 (15:45 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 17 May 2020 13:38:00 +0000 (16:38 +0300)
Handle 6 GHz band capability element parsing for association.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
src/common/ieee802_11_common.c
src/common/ieee802_11_common.h

index e7ee24e2a64948e76e576345dd3a6aa8c0d4fbcb..46f4f4d6f859e2053bbfcc6c5bae1eeb7a43bce7 100644 (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,
index 7994cd7d64cdc2d30a8a176e4ebd3e57bfa6c349..cf4865014bb053850716032a4a2b3f59c9dc536d 100644 (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;