Skip to content

Commit 060b446

Browse files
jmberg-intelegrumbach
authored andcommitted
iwlwifi: mvm: disconnect if CSA time event fails scheduling
If this situation ever happens, the mac80211 state machine gets confused because it never clears csa_active. There was a separate bug that lead to this happening with a working connection, but it isn't very robust to try to keep the connection up in this case. When removing the time event the CSA essentially procedure stops, so the safest thing to do is to disconnect in this case. Signed-off-by: Johannes Berg <[email protected]> Reviewed-by: Luciano Coelho <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]>
1 parent a3a0a59 commit 060b446

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/wireless/iwlwifi/mvm/time-event.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ iwl_mvm_te_handle_notify_csa(struct iwl_mvm *mvm,
197197
struct iwl_time_event_notif *notif)
198198
{
199199
if (!le32_to_cpu(notif->status)) {
200+
if (te_data->vif->type == NL80211_IFTYPE_STATION)
201+
ieee80211_connection_loss(te_data->vif);
200202
IWL_DEBUG_TE(mvm, "CSA time event failed to start\n");
201203
iwl_mvm_te_clear_data(mvm, te_data);
202204
return;

0 commit comments

Comments
 (0)