332-wifi-iwlwifi-mvm-support-flush-on-AP-interfaces.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From: Johannes Berg <johannes.berg@intel.com>
  2. Date: Mon, 13 Mar 2023 12:02:58 +0100
  3. Subject: [PATCH] wifi: iwlwifi: mvm: support flush on AP interfaces
  4. Support TX flush on AP interfaces so that we will do a
  5. proper flush for frames on the queue before keys are
  6. removed.
  7. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  8. Reviewed-by: Greenman, Gregory <gregory.greenman@intel.com>
  9. ---
  10. --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
  11. +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
  12. @@ -4854,9 +4854,6 @@ static void iwl_mvm_mac_flush(struct iee
  13. return;
  14. }
  15. - if (vif->type != NL80211_IFTYPE_STATION)
  16. - return;
  17. -
  18. /* Make sure we're done with the deferred traffic before flushing */
  19. flush_work(&mvm->add_stream_wk);
  20. @@ -4874,9 +4871,6 @@ static void iwl_mvm_mac_flush(struct iee
  21. if (mvmsta->vif != vif)
  22. continue;
  23. - /* make sure only TDLS peers or the AP are flushed */
  24. - WARN_ON(i != mvmvif->ap_sta_id && !sta->tdls);
  25. -
  26. if (drop) {
  27. if (iwl_mvm_flush_sta(mvm, mvmsta, false))
  28. IWL_ERR(mvm, "flush request fail\n");