]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
VHT: Include VHT capabilities and operation elements in parsing
authorMahesh Palivela <maheshp@posedge.com>
Fri, 10 Aug 2012 16:39:43 +0000 (19:39 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 10 Aug 2012 16:39:43 +0000 (19:39 +0300)
Signed-hostap: Mahesh Palivela <maheshp@posedge.com>

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

index d65675cdec810de71fe357bddd7d28df5ebdb154..72dff2fb19555f5f3b995e4e63b8852015b9bd11 100644 (file)
@@ -253,6 +253,14 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
                        elems->ht_operation = pos;
                        elems->ht_operation_len = elen;
                        break;
+               case WLAN_EID_VHT_CAP:
+                       elems->vht_capabilities = pos;
+                       elems->vht_capabilities_len = elen;
+                       break;
+               case WLAN_EID_VHT_OPERATION:
+                       elems->vht_operation = pos;
+                       elems->vht_operation_len = elen;
+                       break;
                case WLAN_EID_LINK_ID:
                        if (elen < 18)
                                break;
index d9b2b6c1fb14e300f83721d49c5159ecd0f19ef9..5ff74295bf53f2a59c8d48a27e57a0ad43a0226b 100644 (file)
@@ -33,6 +33,8 @@ struct ieee802_11_elems {
        const u8 *timeout_int;
        const u8 *ht_capabilities;
        const u8 *ht_operation;
+       const u8 *vht_capabilities;
+       const u8 *vht_operation;
        const u8 *vendor_ht_cap;
        const u8 *p2p;
        const u8 *link_id;
@@ -63,6 +65,8 @@ struct ieee802_11_elems {
        u8 timeout_int_len;
        u8 ht_capabilities_len;
        u8 ht_operation_len;
+       u8 vht_capabilities_len;
+       u8 vht_operation_len;
        u8 vendor_ht_cap_len;
        u8 p2p_len;
        u8 interworking_len;