linux/drivers/net/wireless/broadcom/brcm80211
Wright Feng 9a2a0862d9 brcmfmac: reserve tx credit only when txctl is ready to send
The 4329 throughput drops from 40.2 Mbits/sec to 190 Kbits/sec in 2G
11n mode because the commit b41c232d33 ("brcmfmac: reserve 2 credits
for host tx control path"). To fix the issue, host driver only reserves
tx control credit when there is a txctl frame is pending to send. And
we also check available credit by using "not equal to 0" instead of
"greater than 0" because tx_max and tx_seq are circled positive numbers.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Fixes: b41c232d33 ("brcmfmac: reserve 2 credits for host tx control path")
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200813070017.89023-1-wright.feng@cypress.com
2020-08-18 17:32:22 +03:00
..
brcmfmac brcmfmac: reserve tx credit only when txctl is ready to send 2020-08-18 17:32:22 +03:00
brcmsmac brcm80211: brcmsmac: Move LEDs to GPIO descriptors 2020-07-14 12:51:22 +03:00
brcmutil brcmutil: switch source files to using SPDX license identifier 2019-05-28 15:24:10 +03:00
include brcmfmac: add the BRCM 4364 found in MacBook Pro 15,2 2020-02-12 18:12:51 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00