Commit 323222b5 authored by Paul Stewart's avatar Paul Stewart Committed by John W. Linville
Browse files

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: default avatarPaul Stewart <>
Signed-off-by: default avatarJohn W. Linville <>
parent fd854772
......@@ -170,7 +170,9 @@ void __cfg80211_send_deauth(struct net_device *dev,
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) {
wdev->authtry_bsses[i] = NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment