blob: 92e853f5b18a81bd6e1a1c98e074855c2cc47d0c [file] [log] [blame]
developere1262222022-10-25 12:20:54 +08001From 0f0d127d843c67f076af380d49e42bb2c3ea3f15 Mon Sep 17 00:00:00 2001
developer0b3fe202022-04-19 10:19:57 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Tue, 18 Jan 2022 20:29:44 +0800
developere1262222022-10-25 12:20:54 +08004Subject: [PATCH 901/914] mac80211: do not setup twt when twt responder is
5 false
developer0b3fe202022-04-19 10:19:57 +08006
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
developere1262222022-10-25 12:20:54 +080012index 873daea..a92bd1a 100644
developer0b3fe202022-04-19 10:19:57 +080013--- a/net/mac80211/rx.c
14+++ b/net/mac80211/rx.c
developere1262222022-10-25 12:20:54 +080015@@ -3281,6 +3281,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx)
developer0b3fe202022-04-19 10:19:57 +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--
developere1262222022-10-25 12:20:54 +0800262.18.0
developer0b3fe202022-04-19 10:19:57 +080027