diff options
author | Wen Gong <wgong@codeaurora.org> | 2019-11-27 05:59:29 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-29 10:41:51 +0300 |
commit | 376a30c7c9a05382d2cad09e9ff9b2998d0d53c3 (patch) | |
tree | 517ae219beb65af91323f8259401e00c4170cd58 /drivers/net/wireless/ath/ath10k | |
parent | 7cbf4c96d7159e4abe762f4bafa9911fc1f7d339 (diff) | |
download | linux-376a30c7c9a05382d2cad09e9ff9b2998d0d53c3.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/sdio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index 3e63adfe3e9c..2e155bba2aa3 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -2137,6 +2137,8 @@ static int ath10k_sdio_probe(struct sdio_func *func, bus_params.chip_id = 0; bus_params.hl_msdu_ids = true; + ar->hw->max_mtu = ETH_DATA_LEN; + ret = ath10k_core_register(ar, &bus_params); if (ret) { ath10k_err(ar, "failed to register driver core: %d\n", ret); |