Search Linux Wireless

[PATCH] wifi: mac80211: Set TWT Information Frame Disabled bit as 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The TWT Information Frame Disabled bit of control field of TWT Setup
frame shall be set to 1 since handling TWT Information frame is not
supported by current mac80211 implementation.

Fixes: f5a4c24e689f ("mac80211: introduce individual TWT support in AP mode")

Signed-off-by: Howard Hsu <howard-yh.hsu@xxxxxxxxxxxx>
---
 net/mac80211/s1g.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/mac80211/s1g.c b/net/mac80211/s1g.c
index 8ca7d45d6daa..cb2ab8fd4848 100644
--- a/net/mac80211/s1g.c
+++ b/net/mac80211/s1g.c
@@ -111,6 +111,8 @@ ieee80211_s1g_rx_twt_setup(struct ieee80211_sub_if_data *sdata,
 					 IEEE80211_TWT_REQTYPE_SETUP_CMD);
 		goto out;
 	}
+	/* TWT Information not supported yet */
+	twt->control |= IEEE80211_TWT_CONTROL_RX_DISABLED;
 
 	drv_add_twt_setup(sdata->local, sdata, &sta->sta, twt);
 out:
-- 
2.18.0




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux