ath10k: increase rx buffer size to 2048
authorLinus Lüssing <ll@simonwunderlich.de>
Mon, 11 Jan 2021 17:49:29 +0000 (19:49 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Jan 2021 16:12:47 +0000 (18:12 +0200)
commit3e6b9cf534caa355f569c7cdde7cddd981331433
tree6ea647a240aad09003cd13b3dc00bb823c8d8f9d
parentd18ba9f1351c4675948c87e33a571d28c97d53a7
ath10k: increase rx buffer size to 2048

Before, only frames with a maximum size of 1528 bytes could be
transmitted between two 802.11s nodes.

For batman-adv for instance, which adds its own header to each frame,
we typically need an MTU of at least 1532 bytes to be able to transmit
without fragmentation.

This patch now increases the maxmimum frame size from 1528 to 1656
bytes.

Tested with two ath10k devices in 802.11s mode, as well as with
batman-adv on top of 802.11s with forwarding disabled.

Fix originally found and developed by Ben Greear.

Link: https://github.com/greearb/ath10k-ct/issues/89
Link: https://github.com/greearb/ath10k-ct/commit/9e5ab25027e0971fa24ccf93373324c08c4e992d
Cc: Ben Greear <greearb@candelatech.com>
Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200205191043.21913-1-linus.luessing@c0d3.blue
drivers/net/wireless/ath/ath10k/htt.h