All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cfg80211: clear SSID on disconnect
@ 2009-08-03 15:03 Johannes Berg
  2009-08-04  6:55 ` Joerg Albert
  2009-08-04  7:32 ` [PATCH v2] cfg80211: clear SSID on disconnect/no connection Johannes Berg
  0 siblings, 2 replies; 7+ messages in thread
From: Johannes Berg @ 2009-08-03 15:03 UTC (permalink / raw)
  To: John Linville; +Cc: Joerg Albert, linux-wireless

The SME state machine in cfg80211 uses the SSID stored
in struct wireless_dev internally, but fails to clear
it when disconnecting. This doesn't matter to the SME
state machine, but does matter for IBSS. Thus, when
disconnecting, clear the SSID to avoid messing up the
IBSS state machine.

Reported-by: Joerg Albert <jal2@gmx.de>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/wireless/sme.c |    1 +
 1 file changed, 1 insertion(+)

--- wireless-testing.orig/net/wireless/sme.c	2009-08-03 16:45:01.000000000 +0200
+++ wireless-testing/net/wireless/sme.c	2009-08-03 16:59:02.000000000 +0200
@@ -550,6 +550,7 @@ void __cfg80211_disconnected(struct net_
 
 	wdev->current_bss = NULL;
 	wdev->sme_state = CFG80211_SME_IDLE;
+	wdev->ssid_len = 0;
 
 	if (wdev->conn) {
 		kfree(wdev->conn->ie);



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

end of thread, other threads:[~2009-08-04 22:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 15:03 [PATCH] cfg80211: clear SSID on disconnect Johannes Berg
2009-08-04  6:55 ` Joerg Albert
2009-08-04  7:13   ` Johannes Berg
2009-08-04  8:24     ` Joerg Albert
2009-08-04 12:26       ` Johannes Berg
2009-08-04 22:29         ` Joerg Albert
2009-08-04  7:32 ` [PATCH v2] cfg80211: clear SSID on disconnect/no connection Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.