Skip to content

Commit e715c93

Browse files
egrumbachjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: don't wake up rx_sync_waitq upon RFKILL
Since we now want to sync the queues even when we're in RFKILL, we shouldn't wake up the wait queue since we still expect to get all the notifications from the firmware. Fixes: 4d08c0b ("wifi: iwlwifi: mvm: handle BA session teardown in RF-kill") Signed-off-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20240703064027.be7a9dbeacde.I5586cb3ca8d6e44f79d819a48a0c22351ff720c9@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 4ec17ce commit e715c93

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6410,11 +6410,9 @@ void iwl_mvm_sync_rx_queues_internal(struct iwl_mvm *mvm,
64106410
if (sync) {
64116411
lockdep_assert_held(&mvm->mutex);
64126412
ret = wait_event_timeout(mvm->rx_sync_waitq,
6413-
READ_ONCE(mvm->queue_sync_state) == 0 ||
6414-
iwl_mvm_is_radio_hw_killed(mvm),
6413+
READ_ONCE(mvm->queue_sync_state) == 0,
64156414
SYNC_RX_QUEUE_TIMEOUT);
6416-
WARN_ONCE(!ret && !iwl_mvm_is_radio_hw_killed(mvm),
6417-
"queue sync: failed to sync, state is 0x%lx, cookie %d\n",
6415+
WARN_ONCE(!ret, "queue sync: failed to sync, state is 0x%lx, cookie %d\n",
64186416
mvm->queue_sync_state,
64196417
mvm->queue_sync_cookie);
64206418
}

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,12 +1912,10 @@ static bool iwl_mvm_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state)
19121912
bool rfkill_safe_init_done = READ_ONCE(mvm->rfkill_safe_init_done);
19131913
bool unified = iwl_mvm_has_unified_ucode(mvm);
19141914

1915-
if (state) {
1915+
if (state)
19161916
set_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status);
1917-
wake_up(&mvm->rx_sync_waitq);
1918-
} else {
1917+
else
19191918
clear_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status);
1920-
}
19211919

19221920
iwl_mvm_set_rfkill_state(mvm);
19231921

0 commit comments

Comments
 (0)