blob: 0b070b144e23fa4ba3629115fabab261d015af3d [file] [log] [blame]
developera1432902023-04-01 04:45:58 +08001From: Johannes Berg <johannes.berg@intel.com>
2Date: Mon, 13 Mar 2023 12:02:58 +0100
3Subject: [PATCH] wifi: iwlwifi: mvm: support flush on AP interfaces
4
5Support TX flush on AP interfaces so that we will do a
6proper flush for frames on the queue before keys are
7removed.
8
9Signed-off-by: Johannes Berg <johannes.berg@intel.com>
10Reviewed-by: Greenman, Gregory <gregory.greenman@intel.com>
11---
12
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
16 return;
17 }
18
19- if (vif->type != NL80211_IFTYPE_STATION)
20- return;
21-
22 /* Make sure we're done with the deferred traffic before flushing */
23 flush_work(&mvm->add_stream_wk);
24
25@@ -4837,9 +4834,6 @@ static void iwl_mvm_mac_flush(struct iee
26 if (mvmsta->vif != vif)
27 continue;
28
29- /* make sure only TDLS peers or the AP are flushed */
30- WARN_ON(i != mvmvif->ap_sta_id && !sta->tdls);
31-
32 if (drop) {
33 if (iwl_mvm_flush_sta(mvm, mvmsta, false))
34 IWL_ERR(mvm, "flush request fail\n");