Skip to content

Commit e5593f5

Browse files
Michal Kaziorjmberg-intel
authored andcommitted
mac80211: ignore cqm during csa
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>
1 parent f04c220 commit e5593f5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎net/mac80211/mlme.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,9 @@ static void ieee80211_chswitch_work(struct work_struct *work)
988988

989989
ifmgd->flags &= ~IEEE80211_STA_CSA_RECEIVED;
990990

991+
ieee80211_sta_reset_beacon_monitor(sdata);
992+
ieee80211_sta_reset_conn_monitor(sdata);
993+
991994
out:
992995
sdata_unlock(sdata);
993996
}
@@ -3565,6 +3568,9 @@ static void ieee80211_sta_bcn_mon_timer(unsigned long data)
35653568
if (local->quiescing)
35663569
return;
35673570

3571+
if (sdata->vif.csa_active)
3572+
return;
3573+
35683574
sdata->u.mgd.connection_loss = false;
35693575
ieee80211_queue_work(&sdata->local->hw,
35703576
&sdata->u.mgd.beacon_connection_loss_work);
@@ -3580,6 +3586,9 @@ static void ieee80211_sta_conn_mon_timer(unsigned long data)
35803586
if (local->quiescing)
35813587
return;
35823588

3589+
if (sdata->vif.csa_active)
3590+
return;
3591+
35833592
ieee80211_queue_work(&local->hw, &ifmgd->monitor_work);
35843593
}
35853594

0 commit comments

Comments
 (0)