Commit d25611da authored by Juuso Oikarinen's avatar Juuso Oikarinen Committed by Luciano Coelho

wl1271: Indicate disconnection on hardware failure

In the event of a hardware failure, reconfiguring a live connection back
with the wl1271 chip does not work as expected. The chip has management
features which require setting up the association from scratch to work
correctly. To ensure this is done every time, in managed mode, when associated,
indicate connection loss to the mac80211 before asking to reconfigure the
hardware.
Signed-off-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
Tested-by: default avatarTuomas Katila <ext-tuomas.2.katila@nokia.com>
Reviewed-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
parent 117b38d0
...@@ -636,6 +636,9 @@ static void wl1271_recovery_work(struct work_struct *work) ...@@ -636,6 +636,9 @@ static void wl1271_recovery_work(struct work_struct *work)
wl1271_info("Hardware recovery in progress."); wl1271_info("Hardware recovery in progress.");
if (test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags))
ieee80211_connection_loss(wl->vif);
/* reboot the chipset */ /* reboot the chipset */
__wl1271_op_remove_interface(wl); __wl1271_op_remove_interface(wl);
ieee80211_restart_hw(wl->hw); ieee80211_restart_hw(wl->hw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment