]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
iwlwifi: mvm: inc pending frames counter also when txing non-sta
authorLiad Kaufman <liad.kaufman@intel.com>
Sun, 14 Feb 2016 13:32:58 +0000 (15:32 +0200)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:27:20 +0000 (10:27 +0100)
commitd758bc57424144a05b2b61abbf617d459e1ed471
treefd402ab2107e346400e6467fe8f25fbfed469672
parent89c5723999ed6317538f07874f07eeccf7ed6f2a
iwlwifi: mvm: inc pending frames counter also when txing non-sta

BugLink: http://bugs.launchpad.net/bugs/1558330
commit fb896c44f88a75843a072cd6961b1615732f7811 upstream.

Until this patch, when TXing non-sta the pending_frames counter
wasn't increased, but it WAS decreased in
iwl_mvm_rx_tx_cmd_single(), what makes it negative in certain
conditions. This in turn caused much trouble when we need to
remove the station since we won't be waiting forever until
pending_frames gets 0. In certain cases, we were exhausting
the station table even in BSS mode, because we had a lot of
stale stations.

Increase the counter also in iwl_mvm_tx_skb_non_sta() after a
successful TX to avoid this outcome.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/wireless/iwlwifi/mvm/tx.c