cfg80211: clear SSID on disconnect/no connection
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 4 Aug 2009 07:32:23 +0000 (09:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:44:26 +0000 (16:44 -0400)
commit8dadadb7e977a91b46ed3549f9d2f22a629e5043
tree0197012596c7c6f148e8b268b78f69a0e7f45250
parent847c1e130092240c225a7be08607a7bf4e296fbd
cfg80211: clear SSID on disconnect/no connection

The SME state machine in cfg80211 uses the SSID stored
in struct wireless_dev internally, but fails to clear
it in multiple places (when giving up on a connection
attempt and when disconnecting). This doesn't matter to
the SME state machine, but does matter for IBSS. Thus,
in those cases, 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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/sme.c