developer | 0b3fe20 | 2022-04-19 10:19:57 +0800 | [diff] [blame^] | 1 | From fa2d47980f56462c5767a0ad9537f3e58f5864f4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Tue, 18 Jan 2022 20:29:44 +0800 |
| 4 | Subject: [PATCH] mac80211: do not setup twt when twt responder is false |
| 5 | |
| 6 | --- |
| 7 | net/mac80211/rx.c | 3 +++ |
| 8 | 1 file changed, 3 insertions(+) |
| 9 | |
| 10 | diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c |
| 11 | index 41c3f22..3961270 100644 |
| 12 | --- a/net/mac80211/rx.c |
| 13 | +++ b/net/mac80211/rx.c |
| 14 | @@ -3231,6 +3231,9 @@ ieee80211_process_rx_twt_action(struct ieee80211_rx_data *rx) |
| 15 | if (sdata->vif.type != NL80211_IFTYPE_AP) |
| 16 | return false; |
| 17 | |
| 18 | + if (!sdata->vif.bss_conf.twt_responder) |
| 19 | + return false; |
| 20 | + |
| 21 | if (!rx->local->ops->add_twt_setup) |
| 22 | return false; |
| 23 | |
| 24 | -- |
| 25 | 2.29.2 |
| 26 | |