aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-10-03 18:23:01 +0300
committerJouni Malinen <j@w1.fi>2012-05-08 23:30:10 +0300
commit0b12e961874d786c759db1d9c678369683721169 (patch)
tree0c4b887883a4aa2dcd9063e9a1b210213ec1ed53 /src/common
parentcb4183249f517bf7cb50fba1a571b05e77f4613d (diff)
downloadexternal_wpa_supplicant_8_ti-0b12e961874d786c759db1d9c678369683721169.zip
external_wpa_supplicant_8_ti-0b12e961874d786c759db1d9c678369683721169.tar.gz
external_wpa_supplicant_8_ti-0b12e961874d786c759db1d9c678369683721169.tar.bz2
HS 2.0: Parse Hotspot 2.0 IE from IE list
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ieee802_11_common.c5
-rw-r--r--src/common/ieee802_11_common.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index b0d310d..5b2f2d5 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 bfac88c..60f13a6 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;