OSDN Git Service

rtw88: LPS enter/leave should be protected by lock
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 2 Oct 2019 02:31:22 +0000 (10:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Oct 2019 04:33:44 +0000 (07:33 +0300)
commitd3e20fd17d0b6891a3b6f598abad38da2ab6a70f
tree5e921f8d0282b3f587e7cdc304ba5e245deb7cdc
parent5235d63640c60ad5384310bd88ce0a6d8f87179e
rtw88: LPS enter/leave should be protected by lock

Protect LPS enter/leave routine with rtwdev->mutex.
This helps to synchronize with driver's states correctly.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/ps.c