ath10k: drop the TX packet which size exceed credit size for sdio
authorWen Gong <wgong@codeaurora.org>
Wed, 22 Apr 2020 08:47:19 +0000 (16:47 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 23 Apr 2020 04:55:53 +0000 (07:55 +0300)
commit8347784d6f5fae467e82522029ab1290673c50d6
tree80fd06e1ae6d0e445f8f01856af457f02061b9b6
parentaac392d8553f3fcc8dd42fc8f7af8eb0593ce9ca
ath10k: drop the TX packet which size exceed credit size for sdio

sdio chip use DMA buffer to receive TX packet from ath10k, and it has
limitation of each buffer, if the packet size exceed the credit size,
it will trigger error in firmware.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00017-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200422084719.3479-1-wgong@codeaurora.org
drivers/net/wireless/ath/ath10k/htc.c