blob: d26fe388d9b8f12a3d12afe1318dd4c665f453a9 [file] [log] [blame]
developer4eb49d92022-12-05 11:29:56 +08001From 78275901240835e58b0f883065061f90c7fba310 Mon Sep 17 00:00:00 2001
developer88b55862022-04-19 10:19:57 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Tue, 18 Jan 2022 20:29:44 +0800
developer4eb49d92022-12-05 11:29:56 +08004Subject: [PATCH 900/911] mac80211: mtk: do not setup twt when twt responder is
developer18dec8f2022-10-25 12:20:54 +08005 false
developer88b55862022-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
developer3609d782022-11-29 18:07:22 +080012index b991151..eb16838 100644
developer88b55862022-04-19 10:19:57 +080013--- a/net/mac80211/rx.c
14+++ b/net/mac80211/rx.c
developer3609d782022-11-29 18:07:22 +080015@@ -3283,6 +3283,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx)
developer88b55862022-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--
developer3609d782022-11-29 18:07:22 +0800262.36.1
developer88b55862022-04-19 10:19:57 +080027