HS 2.0: Parse Hotspot 2.0 IE from IE list

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2011-10-03 18:23:01 +03:00 committed by Jouni Malinen
parent cb4183249f
commit 0b12e96187
2 changed files with 7 additions and 0 deletions

View file

@ -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 "

View file

@ -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;