]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Add Interworking element to IE parser
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 21 Oct 2011 09:43:24 +0000 (12:43 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 21 Oct 2011 09:43:24 +0000 (12:43 +0300)
src/common/ieee802_11_common.c
src/common/ieee802_11_common.h

index 8b89f9d8381d3d40b2a2bd011a9c7a5dacfb08de..43cb2c632f92c28092fff3351bb39f821b79f905 100644 (file)
@@ -259,6 +259,10 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
                                break;
                        elems->link_id = pos;
                        break;
+               case WLAN_EID_INTERWORKING:
+                       elems->interworking = pos;
+                       elems->interworking_len = elen;
+                       break;
                default:
                        unknown++;
                        if (!show_errors)
index 1c728fc6d4f0dfa7cdc3bb0938bf1ddc7ddc4a33..60f09748a336a9cbf329b0f954ba357c730ed9c5 100644 (file)
@@ -42,6 +42,7 @@ struct ieee802_11_elems {
        const u8 *vendor_ht_cap;
        const u8 *p2p;
        const u8 *link_id;
+       const u8 *interworking;
 
        u8 ssid_len;
        u8 supp_rates_len;
@@ -67,6 +68,7 @@ struct ieee802_11_elems {
        u8 ht_operation_len;
        u8 vendor_ht_cap_len;
        u8 p2p_len;
+       u8 interworking_len;
 };
 
 typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes;