cfg80211: fix wext stats
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 10 Jul 2009 14:54:07 +0000 (16:54 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:11 +0000 (15:05 -0400)
commitc56c5714f12808e3f702817e72a78dd12f1704eb
tree0dc886563fa77128535d4c8db90779ae01f2a15a
parentca3dbc20d47ae43c201c215259d078e227bfcf01
cfg80211: fix wext stats

Instead of using the wext BSSID which may be NULL if
you haven't explicitly set one, we should instead use
the current_bss pointer -- if that's NULL we aren't
connected anyway. Fixes missing signal quality output
reported to me internally at Intel.

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