Skip to content

Commit

Permalink
mac80211: ignore cqm during csa
Browse files Browse the repository at this point in the history
It is not guaranteed that multi-vif channel
switching is tightly synchronized. It makes sense
to ignore cqm (missing beacons, et al) while csa
is progressing and re-check it after it completes.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Michal Kazior authored and Johannes Berg committed May 7, 2014
1 parent f04c220 commit e5593f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,9 @@ static void ieee80211_chswitch_work(struct work_struct *work)

ifmgd->flags &= ~IEEE80211_STA_CSA_RECEIVED;

ieee80211_sta_reset_beacon_monitor(sdata);
ieee80211_sta_reset_conn_monitor(sdata);

out:
sdata_unlock(sdata);
}
Expand Down Expand Up @@ -3565,6 +3568,9 @@ static void ieee80211_sta_bcn_mon_timer(unsigned long data)
if (local->quiescing)
return;

if (sdata->vif.csa_active)
return;

sdata->u.mgd.connection_loss = false;
ieee80211_queue_work(&sdata->local->hw,
&sdata->u.mgd.beacon_connection_loss_work);
Expand All @@ -3580,6 +3586,9 @@ static void ieee80211_sta_conn_mon_timer(unsigned long data)
if (local->quiescing)
return;

if (sdata->vif.csa_active)
return;

ieee80211_queue_work(&local->hw, &ifmgd->monitor_work);
}

Expand Down

0 comments on commit e5593f5

Please sign in to comment.