summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/mac.c
diff options
context:
space:
mode:
authorSriram R <srirrama@codeaurora.org>2020-03-30 16:47:08 +0530
committerKalle Valo <kvalo@codeaurora.org>2020-04-06 19:20:48 +0300
commit800113ff4b1d277c2b66ffc04d4d38f202a0d187 (patch)
tree1d3b0249b1f5043a9678345e753ae748550a0847 /drivers/net/wireless/ath/ath10k/mac.c
parentbdef56a36eeaccf236af43578f77938f3561a2b1 (diff)
ath11k: Avoid mgmt tx count underflow
The mgmt tx count reference is incremented/decremented on every mgmt tx and on tx completion event from firmware. In case of an unexpected mgmt tx completion event from firmware, the counter would underflow. Avoid this by decrementing only when the tx count is greater than 0. Signed-off-by: Sriram R <srirrama@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1585567028-9242-1-git-send-email-srirrama@codeaurora.org
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
0 files changed, 0 insertions, 0 deletions