ath10k: set max mtu to 1500 for sdio chip
authorWen Gong <wgong@codeaurora.org>
Wed, 27 Nov 2019 02:59:29 +0000 (02:59 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:41:51 +0000 (09:41 +0200)
commit376a30c7c9a05382d2cad09e9ff9b2998d0d53c3
tree517ae219beb65af91323f8259401e00c4170cd58
parent7cbf4c96d7159e4abe762f4bafa9911fc1f7d339
ath10k: set max mtu to 1500 for sdio chip

For sdio chip, the max credit size in firmware is 1556, the 1556
include payload, ieee80211 header, htt header, htc header. So it
need to set the max mtu to 1500 to forbidden TX packet which exceed
1500 form application.

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>
drivers/net/wireless/ath/ath10k/sdio.c