blob: 8c4b67f15be76738279a64976ed9a660039d276b [file] [log] [blame]
developer683be522023-05-11 14:24:50 +08001From fd9094f2ca304f391f9ea5569a60e563703fa907 Mon Sep 17 00:00:00 2001
2From: Howard Hsu <howard-yh.hsu@mediatek.com>
3Date: Thu, 22 Sep 2022 16:08:09 +0800
4Subject: [PATCH 09/28] hostapd: mtk: Do not include HE capab IE if associated
5 sta's HE capab IE is invalid
6
7---
8 src/ap/ieee802_11.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
12index 5b40b13..b5dfad9 100644
13--- a/src/ap/ieee802_11.c
14+++ b/src/ap/ieee802_11.c
15@@ -4399,7 +4399,8 @@ static u16 send_assoc_resp(struct hostapd_data *hapd, struct sta_info *sta,
16 #endif /* CONFIG_IEEE80211AC */
17
18 #ifdef CONFIG_IEEE80211AX
19- if (hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax) {
20+ if (hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax &&
21+ sta->flags & WLAN_STA_HE) {
22 p = hostapd_eid_he_capab(hapd, p, IEEE80211_MODE_AP);
23 p = hostapd_eid_he_operation(hapd, p);
24 p = hostapd_eid_cca(hapd, p);
25--
262.18.0
27