blob: 11ed29845eca2a32b30833c9c286b0c782d2019a [file] [log] [blame]
developer8effbd32023-04-17 15:57:28 +08001From a1ef2ad6df856f2b27001e3487b8bb643458647e Mon Sep 17 00:00:00 2001
developere2cfb522022-12-08 18:09:45 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Tue, 18 Jan 2022 20:29:44 +0800
developer8effbd32023-04-17 15:57:28 +08004Subject: [PATCH 03/16] mac80211: mtk: do not setup twt when twt responder is
developere2cfb522022-12-08 18:09:45 +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
developerda18a742023-04-06 13:44:00 +080012index 376e131..74cf1b6 100644
developere2cfb522022-12-08 18:09:45 +080013--- a/net/mac80211/rx.c
14+++ b/net/mac80211/rx.c
developerda18a742023-04-06 13:44:00 +080015@@ -3400,6 +3400,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx)
developere2cfb522022-12-08 18:09:45 +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--
developerda18a742023-04-06 13:44:00 +0800262.18.0
developere2cfb522022-12-08 18:09:45 +080027