From: Paul Stewart Date: Wed, 8 Jun 2011 12:52:52 +0000 (-0700) Subject: cfg80211: Ignore downstream DEAUTH for authtry_bsses X-Git-Tag: MMI-PSA29.97-13-9~18350^2~12^2~42^2~452 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=323222b5ff930a43eab45cec6e58345740fa2a29;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cfg80211: Ignore downstream DEAUTH for authtry_bsses Downsteram DEAUTH messages do not refer to a current authentication attempt -- AUTH responses do. Therefore we should not allow DEAUTH from an AP to void state for an AUTH attempt in progress. Signed-off-by: Paul Stewart Signed-off-by: John W. Linville --- diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 493b939970cd..3633ab6af184 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -170,7 +170,9 @@ void __cfg80211_send_deauth(struct net_device *dev, break; } if (wdev->authtry_bsses[i] && - memcmp(wdev->authtry_bsses[i]->pub.bssid, bssid, ETH_ALEN) == 0) { + memcmp(wdev->authtry_bsses[i]->pub.bssid, bssid, + ETH_ALEN) == 0 && + memcmp(mgmt->sa, dev->dev_addr, ETH_ALEN) == 0) { cfg80211_unhold_bss(wdev->authtry_bsses[i]); cfg80211_put_bss(&wdev->authtry_bsses[i]->pub); wdev->authtry_bsses[i] = NULL;