wifi: rtw89: fix not entering PS mode after AP stops
authorPo-Hao Huang <phhuang@realtek.com>
Wed, 29 Nov 2023 07:00:43 +0000 (15:00 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 1 Dec 2023 12:43:13 +0000 (14:43 +0200)
commit0052b3c401cdf39d3c3d12a0c3852175bc9a39c7
treef80ef0f325bbb10ba021a445c22f80eb3e4711fb
parent62ad3b976cd7f1cc75458c7df34afb4349ae2429
wifi: rtw89: fix not entering PS mode after AP stops

The attempt to enter power save mode might fail if there are still
beacons pending in the queue. This sometimes happens after stopping
P2P GO or AP mode. Extend stop AP function and flush all beacons to
resolve this.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231129070046.18443-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/reg.h