]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Parse Hotspot 2.0 IE from IE list
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 3 Oct 2011 15:23:01 +0000 (18:23 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 8 May 2012 20:30:10 +0000 (23:30 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/common/ieee802_11_common.c
src/common/ieee802_11_common.h

index b0d310dd382f519b67258d22dde6cf2907e4aca5..5b2f2d56728c372b300bc90081958c0353907b7a 100644 (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 "
index bfac88ce2371f9fb60b723c565290e4fb74c0d88..60f13a6a36c6271a70cf001fe9664e50eb61b6ff 100644 (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;