From 88c8f2af09f656082bae47bbb5ac6698178edfd1 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 12 May 2009 19:58:12 +0200 Subject: [PATCH] --- yaml --- r: 150291 b: refs/heads/master c: 34bfc411f63c8b0efb328b7574fc97bc1714cb29 h: refs/heads/master i: 150289: ef0dcd2db6901cf197bfa8e9a852a192020152b8 150287: 55e4c2e34c78259389a5d57f1c1ce9b9769df8cb v: v3 --- [refs] | 2 +- trunk/net/mac80211/mlme.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 92737d4923a8..fa71c9941d58 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f7eef3563cb3f05e7f0db992716c514af6f4d089 +refs/heads/master: 34bfc411f63c8b0efb328b7574fc97bc1714cb29 diff --git a/trunk/net/mac80211/mlme.c b/trunk/net/mac80211/mlme.c index 2806f6af7ae7..7835e7d43240 100644 --- a/trunk/net/mac80211/mlme.c +++ b/trunk/net/mac80211/mlme.c @@ -1182,6 +1182,17 @@ void ieee80211_beacon_loss_work(struct work_struct *work) u.mgd.beacon_loss_work); struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; + /* + * The driver has already reported this event and we have + * already sent a probe request. Maybe the AP died and the + * driver keeps reporting until we disassociate... We have + * to ignore that because otherwise we would continually + * reset the timer and never check whether we received a + * probe response! + */ + if (ifmgd->flags & IEEE80211_STA_PROBEREQ_POLL) + return; + #ifdef CONFIG_MAC80211_VERBOSE_DEBUG if (net_ratelimit()) { printk(KERN_DEBUG "%s: driver reports beacon loss from AP %pM "