Commit c1e6fb1a authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

cfg80211: warn again on spurious deauth

The original code in mac80211 could send a deauth
frame under certain circumstances even if nothing
had ever requested an authentication. This has been
fixed with the rework there, so cfg80211 can now
warn again about spurious events to catch possible
future drivers or mac80211 regressions.
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cb0b4beb
...@@ -122,15 +122,9 @@ void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len) ...@@ -122,15 +122,9 @@ void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len)
break; break;
} }
} }
/*
* mac80211 currently triggers this warning,
* so disable for now (it's harmless, just
* means that we got a spurious event)
WARN_ON(!done); WARN_ON(!done);
*/
if (wdev->sme_state == CFG80211_SME_CONNECTED) { if (wdev->sme_state == CFG80211_SME_CONNECTED) {
u16 reason_code; u16 reason_code;
bool from_ap; bool from_ap;
......
Markdown is supported
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