developer | a143290 | 2023-04-01 04:45:58 +0800 | [diff] [blame] | 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 | @@ -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"); |