diff mbox series

[3/9] 6G: Add HE 6 GHz Band Capabilities into ieee802_11_parse_elems()

Message ID 1587768342-26601-3-git-send-email-rmanohar@codeaurora.org
State Accepted
Headers show
Series [1/9] 6G: Define 6 GHz band Capability elements | expand

Commit Message

Rajkumar Manoharan April 24, 2020, 10:45 p.m. UTC
Handle 6 GHz band capability element parsing for association.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
---
 src/common/ieee802_11_common.c | 5 +++++
 src/common/ieee802_11_common.h | 1 +
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index e7ee24e2a649..d1cfe5f3cb29 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -294,6 +294,11 @@  static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
 		elems->short_ssid_list = pos;
 		elems->short_ssid_list_len = elen;
 		break;
+	case WLAN_EID_EXT_HE_6GHZ_BAND_CAP:
+		if (elen != sizeof(struct ieee80211_he_6ghz_band_cap))
+			break;
+		elems->he_6ghz_band_cap = pos;
+		break;
 	default:
 		if (show_errors) {
 			wpa_printf(MSG_MSGDUMP,
diff --git a/src/common/ieee802_11_common.h b/src/common/ieee802_11_common.h
index 7994cd7d64cd..cf4865014bb0 100644
--- a/src/common/ieee802_11_common.h
+++ b/src/common/ieee802_11_common.h
@@ -113,6 +113,7 @@  struct ieee802_11_elems {
 	const u8 *he_capabilities;
 	const u8 *he_operation;
 	const u8 *short_ssid_list;
+	const u8 *he_6ghz_band_cap;
 
 	u8 ssid_len;
 	u8 supp_rates_len;