Skip to content
Commit 9a2a0862 authored by Wright Feng's avatar Wright Feng Committed by Kalle Valo
Browse files

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 b41c232d ("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: default avatarDmitry Osipenko <digetx@gmail.com>
Fixes: b41c232d ("brcmfmac: reserve 2 credits for host tx control path")
Signed-off-by: default avatarWright Feng <wright.feng@cypress.com>
Tested-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200813070017.89023-1-wright.feng@cypress.com
parent 9123e3a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment