blob: d3c58ae9acf0134225f393c426fc9402a4d2d7e0 [file] [log] [blame]
developer8eb72a32023-03-30 08:32:07 +08001From 72db9d812b76238383a7ea808e6588fa07f4cdfe Mon Sep 17 00:00:00 2001
developerfa277332022-09-22 20:12:40 +08002From: Howard Hsu <howard-yh.hsu@mediatek.com>
3Date: Thu, 22 Sep 2022 16:08:09 +0800
developer8eb72a32023-03-30 08:32:07 +08004Subject: [PATCH 09/25] hostapd: mtk: Do not include HE capab IE if associated
developer57a17d42023-02-14 23:19:14 +08005 sta's HE capab IE is invalid
developerfa277332022-09-22 20:12:40 +08006
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
developer81939a52023-03-25 15:31:11 +080012index d921783..098793e 100644
developerfa277332022-09-22 20:12:40 +080013--- a/src/ap/ieee802_11.c
14+++ b/src/ap/ieee802_11.c
developer5cebe562022-10-08 00:32:24 +080015@@ -5192,7 +5192,8 @@ static u16 send_assoc_resp(struct hostapd_data *hapd, struct sta_info *sta,
developerfa277332022-09-22 20:12:40 +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--
developer81939a52023-03-25 15:31:11 +0800262.18.0
developerfa277332022-09-22 20:12:40 +080027