Skip to content

Commit f2c2799

Browse files
benzeajmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: mark EMLSR disabled in cleanup iterator
During HW restart only one link will be active initially and other links are only activated again later on. With only a single link EMLSR cannot be enabled and having it marked enabled confuses the internal state. Mark EMLSR as disabled in the cleanup iterator, it can be reenabled later one once this is possible. Signed-off-by: Benjamin Berg <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20240320232419.71eb622d6ce3.Ic4d50695b9bb332190dc712473096083aa96074b@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 9737da2 commit f2c2799

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,9 @@ static void iwl_mvm_cleanup_iterator(void *data, u8 *mac,
11081108
mvmvif->ba_enabled = false;
11091109
mvmvif->ap_sta = NULL;
11101110

1111+
mvmvif->esr_active = false;
1112+
vif->driver_flags &= ~IEEE80211_VIF_EML_ACTIVE;
1113+
11111114
for_each_mvm_vif_valid_link(mvmvif, link_id) {
11121115
mvmvif->link[link_id]->ap_sta_id = IWL_MVM_INVALID_STA;
11131116
mvmvif->link[link_id]->fw_link_id = IWL_MVM_FW_LINK_ID_INVALID;

0 commit comments

Comments
 (0)