On Thursday 23 July 2009, Luis R. Rodriguez wrote: > >> Please try this patch: > >> > >> From: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> > >> Subject: [PATCH] mac80211: do not trigger beacon work if scanning > >> > >> We were issues probe requests to the associated AP on the wrong > >> band. This leads to finding not bitrate. We should not be doing > >> this, so prevent the timer from stuffing beacon loss work on > >> the mac80211 workqueue. > >> > >> Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> > >> --- > >> net/mac80211/mlme.c | 2 +- > >> 1 files changed, 1 insertions(+), 1 deletions(-) > >> > >> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c > >> index 523c0d9..e90992e 100644 > >> --- a/net/mac80211/mlme.c > >> +++ b/net/mac80211/mlme.c > >> @@ -2187,7 +2187,7 @@ static void ieee80211_sta_bcn_mon_timer(unsigned > >> long data) (struct ieee80211_sub_if_data *) data; > >> struct ieee80211_local *local = sdata->local; > >> > >> - if (local->quiescing) > >> + if (local->quiescing || local->sw_scanning || > >> local->hw_scanning) return; > > > > Heh no wait, this is very wrong. > > Never mind, please do try it. If we are scanning we should not be > sending probe requests through a timer. That clarifies what I mean and > I should add that to the commit log. But please do try it. Patch applied, now the warning is disappeared! Fabio -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html