cfg80211: don't look at wdev->ssid for giwessid
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 10 Jul 2009 15:53:34 +0000 (17:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:11 +0000 (15:05 -0400)
commit908d4369a394e816767d566d9c3d15a5af8c1c55
treea1aa369a55a6f998109448cdb6dbbcf77ff9b5f0
parent4b14c96dfbf068acb85c3fa2446b3949c0230deb
cfg80211: don't look at wdev->ssid for giwessid

This variable is only used internally, _while_ connected.
If we use it, the sequence

# iwconfig wlan1 essid foo
<connects>
# iwconfig wlan1 essid ""
<disconnects>
# iwconfig

will still display "foo" as the SSID afterwards, which
is obviously quite bogus. Fix this by only displaying
the wext SSID, if present.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/wext-sme.c