From: Pavel Roskin Date: Thu, 6 Aug 2009 08:52:42 +0000 (-0400) Subject: cfg80211: fix disassociation warning due to misuse of wdev->current_bss X-Git-Tag: v2.6.32-rc1~703^2~367^2~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b935df01ed4f0848f29b1e39c4f95d87b0206dea;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Reviewed-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 525e8e2..b44b6c0 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -198,7 +198,7 @@ static void __cfg80211_send_disassoc(struct net_device *dev, return; if (wdev->current_bss && - memcmp(wdev->current_bss, bssid, ETH_ALEN) == 0) { + memcmp(wdev->current_bss->pub.bssid, bssid, ETH_ALEN) == 0) { for (i = 0; i < MAX_AUTH_BSSES; i++) { if (wdev->authtry_bsses[i] || wdev->auth_bsses[i]) continue;