@@ -2098,7 +2098,8 @@ int iwl_mvm_rm_sta(struct iwl_mvm *mvm,
20982098 return ret ;
20992099
21002100 /* flush its queues here since we are freeing mvm_sta */
2101- ret = iwl_mvm_flush_sta (mvm , mvm_sta , false);
2101+ ret = iwl_mvm_flush_sta (mvm , mvm_sta -> deflink .sta_id ,
2102+ mvm_sta -> tfd_queue_msk );
21022103 if (ret )
21032104 return ret ;
21042105 if (iwl_mvm_has_new_tx_api (mvm )) {
@@ -2409,7 +2410,8 @@ void iwl_mvm_free_bcast_sta_queues(struct iwl_mvm *mvm,
24092410
24102411 lockdep_assert_held (& mvm -> mutex );
24112412
2412- iwl_mvm_flush_sta (mvm , & mvmvif -> deflink .bcast_sta , true);
2413+ iwl_mvm_flush_sta (mvm , mvmvif -> deflink .bcast_sta .sta_id ,
2414+ mvmvif -> deflink .bcast_sta .tfd_queue_msk );
24132415
24142416 switch (vif -> type ) {
24152417 case NL80211_IFTYPE_AP :
@@ -2665,7 +2667,8 @@ int iwl_mvm_rm_mcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
26652667
26662668 lockdep_assert_held (& mvm -> mutex );
26672669
2668- iwl_mvm_flush_sta (mvm , & mvmvif -> deflink .mcast_sta , true);
2670+ iwl_mvm_flush_sta (mvm , mvmvif -> deflink .mcast_sta .sta_id ,
2671+ mvmvif -> deflink .mcast_sta .tfd_queue_msk );
26692672
26702673 iwl_mvm_disable_txq (mvm , NULL , mvmvif -> deflink .mcast_sta .sta_id ,
26712674 & mvmvif -> deflink .cab_queue , 0 );
0 commit comments