cfg80211: fix disassociation warning due to misuse of wdev->current_bss
authorPavel Roskin <proski@gnu.org>
Thu, 6 Aug 2009 08:52:42 +0000 (04:52 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:12:45 +0000 (09:12 -0400)
commitb935df01ed4f0848f29b1e39c4f95d87b0206dea
tree575a56fa443f646dbbeb1fe2895d47a696a212e6
parent4af198fb7a99b07980b1bd52df550ba3f24688df
cfg80211: fix disassociation warning due to misuse of wdev->current_bss

WARN_ON was triggered at mlme.c:213 when dissociating from an AP.

wdev->current_bss->pub.bssid should be used in place of
wdev->current_bss for BSSID comparison.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/mlme.c