]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
wifi: mac80211: Set TWT Information Frame Disabled bit as 1
authorHoward Hsu <howard-yh.hsu@mediatek.com>
Thu, 27 Oct 2022 01:56:53 +0000 (09:56 +0800)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:02 +0000 (13:59 +0100)
[ Upstream commit 30ac96f7cc973bb850c718c9bbe1fdcedfbe826b ]

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@mediatek.com>
Link: https://lore.kernel.org/r/20221027015653.1448-1-howard-yh.hsu@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 2fc902245c82e201b35aeb0becf1514b373eefe2)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
net/mac80211/s1g.c

index 4141bc80cdfd64f1b5496e0d240ec04b2b3e04d2..10b34bc4b67d45ccfc4093b053e7e6e75611cea6 100644 (file)
@@ -112,6 +112,9 @@ ieee80211_s1g_rx_twt_setup(struct ieee80211_sub_if_data *sdata,
                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:
        ieee80211_s1g_send_twt_setup(sdata, mgmt->sa, sdata->vif.addr, twt);