diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c index b0d310dd3..5b2f2d567 100644 --- a/src/common/ieee802_11_common.c +++ b/src/common/ieee802_11_common.c @@ -97,6 +97,11 @@ static int ieee802_11_parse_vendor_specific(const u8 *pos, size_t elen, elems->p2p = pos; elems->p2p_len = elen; break; + case HS20_INDICATION_OUI_TYPE: + /* Hotspot 2.0 */ + elems->hs20 = pos; + elems->hs20_len = elen; + break; default: wpa_printf(MSG_MSGDUMP, "Unknown WFA " "information element ignored " diff --git a/src/common/ieee802_11_common.h b/src/common/ieee802_11_common.h index bfac88ce2..60f13a6a3 100644 --- a/src/common/ieee802_11_common.h +++ b/src/common/ieee802_11_common.h @@ -37,6 +37,7 @@ struct ieee802_11_elems { const u8 *p2p; const u8 *link_id; const u8 *interworking; + const u8 *hs20; u8 ssid_len; u8 supp_rates_len; @@ -63,6 +64,7 @@ struct ieee802_11_elems { u8 vendor_ht_cap_len; u8 p2p_len; u8 interworking_len; + u8 hs20_len; }; typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes;