blob: b7d52f59df6b3b85ed0dd285f6e9cfb318260488 [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From ab5065afa6302d7241b2252a6f2ebdba8dc9763b Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Tue, 18 Jan 2022 20:29:44 +0800
4Subject: [PATCH 08/61] mtk: mac80211: do not setup twt when twt responder is
5 false
6
7---
8 net/mac80211/rx.c | 3 +++
9 1 file changed, 3 insertions(+)
10
11diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
12index be724c2..89a1199 100644
13--- a/net/mac80211/rx.c
14+++ b/net/mac80211/rx.c
15@@ -3458,6 +3458,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx)
16 if (sdata->vif.type != NL80211_IFTYPE_AP)
17 return false;
18
19+ if (!sdata->vif.bss_conf.twt_responder)
20+ return false;
21+
22 if (!rx->local->ops->add_twt_setup)
23 return false;
24
25--
262.39.2
27