iwlwifi: sta: defer ADDBA transmit in case reclaimed SN != next SN
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Fri, 11 Sep 2020 17:44:33 +0000 (20:44 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 1 Oct 2020 18:52:59 +0000 (21:52 +0300)
This avoids cases that we have a lot of packets in the queue and until we
are able to transmit SSN packet the other side sends DELBA due to timeout.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200911204056.8a8481c60663.I353ab6f1bc04c7fdf873dead59f483454e2425ba@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c

index 9e124755a3cee4fbcce15613912c35d33073eac9..fc45ef4f6951fc60bc6f66adddb7067650f96d37 100644 (file)
@@ -2863,7 +2863,7 @@ int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
                ret = IEEE80211_AMPDU_TX_START_IMMEDIATE;
        } else {
                tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA;
-               ret = 0;
+               ret = IEEE80211_AMPDU_TX_START_DELAY_ADDBA;
        }
 
 out: