blob: c22efa92d92c405a3e0c9ae15e394b3955630037 [file] [log] [blame]
developer27057f82023-07-10 17:23:13 +08001From 63e4c07d235e07d0616ecb1328067f7157271c30 Mon Sep 17 00:00:00 2001
developer683be522023-05-11 14:24:50 +08002From: Howard Hsu <howard-yh.hsu@mediatek.com>
3Date: Thu, 22 Sep 2022 16:08:09 +0800
developer27057f82023-07-10 17:23:13 +08004Subject: [PATCH 09/32] hostapd: mtk: Do not include HE capab IE if associated
developer683be522023-05-11 14:24:50 +08005 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
developer27057f82023-07-10 17:23:13 +080012index db48b7cb7..1bf5bea9d 100644
developer683be522023-05-11 14:24:50 +080013--- a/src/ap/ieee802_11.c
14+++ b/src/ap/ieee802_11.c
developer27057f82023-07-10 17:23:13 +080015@@ -4843,7 +4843,8 @@ static u16 send_assoc_resp(struct hostapd_data *hapd, struct sta_info *sta,
developer683be522023-05-11 14:24:50 +080016 #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--
developer27057f82023-07-10 17:23:13 +0800262.39.2
developer683be522023-05-11 14:24:50 +080027