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: NThomas H. Guenther <thomas.h.guenther@intel.com> Signed-off-by: NJohannes Berg <johannes@sipsolutions.net> Tested-by: NThomas H. Guenther <thomas.h.guenther@intel.com> Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
Showing
想要评论请 注册 或 登录