cfg80211: wext: don't display BSSID unless associated
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 17 Sep 2009 15:35:54 +0000 (08:35 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Sep 2009 20:55:04 +0000 (16:55 -0400)
commit33de4f9d787e01646f715ac10c2699fb98fd479e
tree8d9e9e42ac8143b7d7d26c46fd12aff091c10d74
parentd1f8297a96b0d70f17704296a6666468f2087ce6
cfg80211: wext: don't display BSSID unless associated

Currently, cfg80211's SIOCGIWAP implementation returns
the BSSID that the user set, even if the connection has
since been dropped due to other changes. It only should
return the current BSSID when actually connected.

Also do a small code cleanup.

Reported-by: Thomas H. Guenther <thomas.h.guenther@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Thomas H. Guenther <thomas.h.guenther@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/wext-sme.c