From 6256f19bc29242b2fdb8342d05a4f5e8da80b4b5 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 18 Aug 2008 01:05:46 +0000 Subject: MFC r180837: don't deauth a station because it sends a ps-poll w/ a bogus aid --- sys/net80211/ieee80211_input.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 458afc8ea325..44652154bfd3 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -3107,8 +3107,14 @@ ieee80211_recv_pspoll(struct ieee80211com *ic, "aid mismatch: sta aid 0x%x poll aid 0x%x", ni->ni_associd, aid); ic->ic_stats.is_ps_badaid++; - IEEE80211_SEND_MGMT(ic, ni, IEEE80211_FC0_SUBTYPE_DEAUTH, - IEEE80211_REASON_NOT_ASSOCED); + /* + * NB: We used to deauth the station but it turns out + * the Blackberry Curve 8230 (and perhaps other devices) + * sometimes send the wrong AID when WME is negotiated. + * Being more lenient here seems ok as we already check + * the station is associated and we only return frames + * queued for the station (i.e. we don't use the AID). + */ return; } -- cgit v1.3