developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame] | 1 | From 635092a3fd448ecca927e72882f05dc52bb1d21b Mon Sep 17 00:00:00 2001 |
developer | e2cfb52 | 2022-12-08 18:09:45 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Tue, 18 Jan 2022 20:29:44 +0800 |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame] | 4 | Subject: [PATCH 01/14] mac80211: mtk: do not setup twt when twt responder is |
developer | e2cfb52 | 2022-12-08 18:09:45 +0800 | [diff] [blame] | 5 | false |
| 6 | |
| 7 | --- |
| 8 | net/mac80211/rx.c | 3 +++ |
| 9 | 1 file changed, 3 insertions(+) |
| 10 | |
| 11 | diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame] | 12 | index fadf2be..54dcaf6 100644 |
developer | e2cfb52 | 2022-12-08 18:09:45 +0800 | [diff] [blame] | 13 | --- a/net/mac80211/rx.c |
| 14 | +++ b/net/mac80211/rx.c |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame] | 15 | @@ -3400,6 +3400,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx) |
developer | e2cfb52 | 2022-12-08 18:09:45 +0800 | [diff] [blame] | 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 | -- |
developer | d7066b0 | 2023-04-21 11:17:26 +0800 | [diff] [blame] | 26 | 2.39.2 |
developer | e2cfb52 | 2022-12-08 18:09:45 +0800 | [diff] [blame] | 27 | |