3c31dfeddc8eba301e0ee3a73d9a70dee5ffbad7
[openwrt/staging/hauke.git] / package / kernel / mac80211 / patches / subsys / 332-wifi-iwlwifi-mvm-support-flush-on-AP-interfaces.patch
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
5 Support TX flush on AP interfaces so that we will do a
6 proper flush for frames on the queue before keys are
7 removed.
8
9 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
10 Reviewed-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 @@ -4854,9 +4854,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 @@ -4874,9 +4871,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");