diff options
author | Pavel Roskin <proski@gnu.org> | 2009-08-06 04:52:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:12:45 -0400 |
commit | b935df01ed4f0848f29b1e39c4f95d87b0206dea (patch) | |
tree | 575a56fa443f646dbbeb1fe2895d47a696a212e6 /net/wireless | |
parent | 4af198fb7a99b07980b1bd52df550ba3f24688df (diff) |
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>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 525e8e247b30..b44b6c024c14 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c | |||
@@ -198,7 +198,7 @@ static void __cfg80211_send_disassoc(struct net_device *dev, | |||
198 | return; | 198 | return; |
199 | 199 | ||
200 | if (wdev->current_bss && | 200 | if (wdev->current_bss && |
201 | memcmp(wdev->current_bss, bssid, ETH_ALEN) == 0) { | 201 | memcmp(wdev->current_bss->pub.bssid, bssid, ETH_ALEN) == 0) { |
202 | for (i = 0; i < MAX_AUTH_BSSES; i++) { | 202 | for (i = 0; i < MAX_AUTH_BSSES; i++) { |
203 | if (wdev->authtry_bsses[i] || wdev->auth_bsses[i]) | 203 | if (wdev->authtry_bsses[i] || wdev->auth_bsses[i]) |
204 | continue; | 204 | continue; |