Interworking: Add Interworking element to IE parser

This commit is contained in:
Jouni Malinen 2011-10-21 12:43:24 +03:00 committed by Jouni Malinen
parent 16991cffd6
commit 538958ae9c
2 changed files with 6 additions and 0 deletions

View file

@ -259,6 +259,10 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
break; break;
elems->link_id = pos; elems->link_id = pos;
break; break;
case WLAN_EID_INTERWORKING:
elems->interworking = pos;
elems->interworking_len = elen;
break;
default: default:
unknown++; unknown++;
if (!show_errors) if (!show_errors)

View file

@ -42,6 +42,7 @@ struct ieee802_11_elems {
const u8 *vendor_ht_cap; const u8 *vendor_ht_cap;
const u8 *p2p; const u8 *p2p;
const u8 *link_id; const u8 *link_id;
const u8 *interworking;
u8 ssid_len; u8 ssid_len;
u8 supp_rates_len; u8 supp_rates_len;
@ -67,6 +68,7 @@ struct ieee802_11_elems {
u8 ht_operation_len; u8 ht_operation_len;
u8 vendor_ht_cap_len; u8 vendor_ht_cap_len;
u8 p2p_len; u8 p2p_len;
u8 interworking_len;
}; };
typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes; typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes;