aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-05-20 07:55:05 (GMT)
committerJouni Malinen <j@w1.fi>2019-05-27 13:27:41 (GMT)
commit289a9cf7aee91f47e6aa3a40583983782a85a500 (patch)
treec44fdf65fe0294e06e0d19e13900131701735495 /src/common
parentd70776098dc5d36edfebb3de83b6c98f218ba1a4 (diff)
downloadhostap-289a9cf7aee91f47e6aa3a40583983782a85a500.zip
hostap-289a9cf7aee91f47e6aa3a40583983782a85a500.tar.gz
hostap-289a9cf7aee91f47e6aa3a40583983782a85a500.tar.bz2
HE: Add HE Operation element to element parser
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com> Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ieee802_11_common.c4
-rw-r--r--src/common/ieee802_11_common.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index c02b99d..4de5399 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -274,6 +274,10 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
elems->he_capabilities = pos;
elems->he_capabilities_len = elen;
break;
+ case WLAN_EID_EXT_HE_OPERATION:
+ elems->he_operation = pos;
+ elems->he_operation_len = elen;
+ break;
case WLAN_EID_EXT_OCV_OCI:
elems->oci = pos;
elems->oci_len = elen;
diff --git a/src/common/ieee802_11_common.h b/src/common/ieee802_11_common.h
index 930d454..9b045b4 100644
--- a/src/common/ieee802_11_common.h
+++ b/src/common/ieee802_11_common.h
@@ -94,6 +94,7 @@ struct ieee802_11_elems {
const u8 *oci;
const u8 *multi_ap;
const u8 *he_capabilities;
+ const u8 *he_operation;
u8 ssid_len;
u8 supp_rates_len;
@@ -143,6 +144,7 @@ struct ieee802_11_elems {
u8 oci_len;
u8 multi_ap_len;
u8 he_capabilities_len;
+ u8 he_operation_len;
struct mb_ies_info mb_ies;
};