]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cde9661d47391ee89579087215168b316d183d5
tree8d9e9e42ac8143b7d7d26c46fd12aff091c10d74
parentf8ebafd78544e63482a69c0fcf4563b1e6edd290
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