]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iwlwifi: mvm: avoid sending too many BARs
authorSara Sharon <sara.sharon@intel.com>
Tue, 1 May 2018 12:12:08 +0000 (15:12 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:29 +0000 (13:16 +0100)
commitdd2be14205b392f26a8493223b36d387734ad815
tree0ea3eabd96d8acd81a4756675a81edb9fbb04ec6
parentfc1b87329a2507ec6d620f163d8ef02660275904
iwlwifi: mvm: avoid sending too many BARs

BugLink: https://bugs.launchpad.net/bugs/1853915
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c