blob: 6cced0db8313929e6caac63e3c0eb485d5d86ae8 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From 1741b996a7e2470a5b706f14e61f2729cdb02e2c Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Tue, 18 Jan 2022 20:29:44 +0800
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 17/89] mtk: mac80211: do not setup twt when twt responder is
developer66e89bc2024-04-23 14:50:01 +08005 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
developer05f3b2b2024-08-19 19:17:34 +080012index 956110f..4ca7ae1 100644
developer66e89bc2024-04-23 14:50:01 +080013--- a/net/mac80211/rx.c
14+++ b/net/mac80211/rx.c
developer05f3b2b2024-08-19 19:17:34 +080015@@ -3461,6 +3461,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx)
developer66e89bc2024-04-23 14:50:01 +080016 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--
developer05f3b2b2024-08-19 19:17:34 +0800262.18.0
developer66e89bc2024-04-23 14:50:01 +080027