Skip to content

Commit 97cc169

Browse files
AviSternKalle Valo
authored andcommitted
iwlwifi: mvm: write queue_sync_state only for sync
We use mvm->queue_sync_state to wait for synchronous queue sync messages, but if an async one happens inbetween we shouldn't clear mvm->queue_sync_state after sending the async one, that can run concurrently (at least from the CPU POV) with another synchronous queue sync. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Fixes: 3c514bf ("iwlwifi: mvm: add a loose synchronization of the NSSN across Rx queues") Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/iwlwifi.20201107104557.51a3148f2c14.I0772171dbaec87433a11513e9586d98b5d920b5f@changeid
1 parent 1cf260e commit 97cc169

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,6 +3127,9 @@ static int iwl_mvm_mac_sta_state(struct ieee80211_hw *hw,
31273127
goto out_unlock;
31283128
}
31293129

3130+
if (vif->type == NL80211_IFTYPE_STATION)
3131+
vif->bss_conf.he_support = sta->he_cap.has_he;
3132+
31303133
if (sta->tdls &&
31313134
(vif->p2p ||
31323135
iwl_mvm_tdls_sta_count(mvm, NULL) ==

0 commit comments

Comments
 (0)