Skip to content

Commit

Permalink
cfg80211: warn again on spurious deauth
Browse files Browse the repository at this point in the history
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: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 10, 2009
1 parent cb0b4be commit c1e6fb1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/wireless/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,9 @@ void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len)
break;
}
}
/*
* mac80211 currently triggers this warning,
* so disable for now (it's harmless, just
* means that we got a spurious event)

WARN_ON(!done);

*/

if (wdev->sme_state == CFG80211_SME_CONNECTED) {
u16 reason_code;
bool from_ap;
Expand Down

0 comments on commit c1e6fb1

Please sign in to comment.