rtw89: implement mac80211_ops::set_tim to indicate STA to receive packets
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 7 Jan 2022 03:42:25 +0000 (11:42 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 28 Jan 2022 15:56:36 +0000 (17:56 +0200)
commitd62816b4a44e731fd7f192b40a947eec2b2b1a81
tree37cb4dbad05822bc1afd05a0e771df81697dd01c
parentfccca9345b25f7968ddcf40e4e9af5aa5cc26428
rtw89: implement mac80211_ops::set_tim to indicate STA to receive packets

Update beacon content if TIM bitmap maintained by mac80211 is changed.
Since .set_tim must be atomic but driver uses mutex lock, we add a work.
Otherwise, kernel says "sched: RT throttling activated" and lock down.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220107034239.22002-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac80211.c