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
5 Support TX flush on AP interfaces so that we will do a
6 proper flush for frames on the queue before keys are
9 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
10 Reviewed-by: Greenman, Gregory <gregory.greenman@intel.com>
13 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
14 +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
15 @@ -4817,9 +4817,6 @@ static void iwl_mvm_mac_flush(struct iee
19 - if (vif->type != NL80211_IFTYPE_STATION)
22 /* Make sure we're done with the deferred traffic before flushing */
23 flush_work(&mvm->add_stream_wk);
25 @@ -4837,9 +4834,6 @@ static void iwl_mvm_mac_flush(struct iee
26 if (mvmsta->vif != vif)
29 - /* make sure only TDLS peers or the AP are flushed */
30 - WARN_ON(i != mvmvif->ap_sta_id && !sta->tdls);
33 if (iwl_mvm_flush_sta(mvm, mvmsta, false))
34 IWL_ERR(mvm, "flush request fail\n");