linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] wl1271: Indicate disconnection on hardware failure
@ 2010-09-30 10:43 juuso.oikarinen
  2010-09-30 10:43 ` [PATCH 2/2] wl1271: Move work-init calls to hw allocation juuso.oikarinen
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: juuso.oikarinen @ 2010-09-30 10:43 UTC (permalink / raw)
  To: luciano.coelho; +Cc: linux-wireless

From: Juuso Oikarinen <juuso.oikarinen@nokia.com>

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: Juuso Oikarinen <juuso.oikarinen@nokia.com>
---
 drivers/net/wireless/wl12xx/wl1271_main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index cb18f22..2253458 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -636,6 +636,9 @@ static void wl1271_recovery_work(struct work_struct *work)
 
 	wl1271_info("Hardware recovery in progress.");
 
+	if (test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags))
+		ieee80211_connection_loss(wl->vif);
+
 	/* reboot the chipset */
 	__wl1271_op_remove_interface(wl);
 	ieee80211_restart_hw(wl->hw);
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-05 11:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 10:43 [PATCH 1/2] wl1271: Indicate disconnection on hardware failure juuso.oikarinen
2010-09-30 10:43 ` [PATCH 2/2] wl1271: Move work-init calls to hw allocation juuso.oikarinen
2010-10-04 10:45   ` Luciano Coelho
     [not found] ` <1285846632.11177.163.camel@wimaxnb.nmp.nokia.com>
2010-09-30 11:45   ` Tuomas Katila
2010-10-04 10:45 ` [PATCH 1/2] wl1271: Indicate disconnection on hardware failure Luciano Coelho
2010-10-05 11:18 ` Luciano Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).