iwlwifi: mvm: avoid sending too many BARs
authorSara Sharon <sara.sharon@intel.com>
Tue, 1 May 2018 12:12:08 +0000 (15:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:52:05 +0000 (09:52 +0100)
commit2b3be9f4defb85d54271f7232ed77df06c7120bd
treee5fe8dab5f69bf7984ac50233a7e2b462cabe554
parentb31b2dfbe6175c9ba188aad342db0f1390f7d5e7
iwlwifi: mvm: avoid sending too many BARs

[ Upstream commit 1a19c139be18ed4d6d681049cc48586fae070120 ]

When we receive TX response, we may release a few packets
due to a hole that was closed in the transmission window.

However, if that frame failed, we will mark all the released
frames as failed and will send multiple BARs.

This affects statistics badly, and cause unnecessary frames
transmission.

Instead, mark all the following packets as success, with the
desired result of sending a bar for the failed frame only.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c