OSDN Git Service

wcn36xx: Treat repeated BMPS entry fail as connection loss
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 22 Oct 2021 14:04:46 +0000 (15:04 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Oct 2021 07:43:30 +0000 (10:43 +0300)
commit2f1ae32f736ddafa3b3c7a62b8e943ef53b3230f
tree3fa9cf9c31c8263c7a18edc89018bf3761fc4d3e
parenta224b47ab36d7db5fb5d410622777fd10794f4cd
wcn36xx: Treat repeated BMPS entry fail as connection loss

On an open AP when you pull the plug on the AP, if we are not already in
BMPS mode then the firmware will not generate a disconnection event.

Instead we need to monitor for failure to enter BMPS and treat a string of
failures as connection loss.

Secure AP connections don't appear to demonstrate this behavior so the
work-around is limited to open APs only.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211022140447.2846248-2-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/pmc.c
drivers/net/wireless/ath/wcn36xx/wcn36xx.h