wifi: ath12k: Use msdu_end to check MCBC
authorBaochen Qiang <quic_bqiang@quicinc.com>
Mon, 29 May 2023 08:16:09 +0000 (16:16 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 9 Jun 2023 13:32:45 +0000 (16:32 +0300)
commit8f04852e90cbed8e12c13d75a87adbad313d365e
treef1fcb4ebbf663af9c9fa96d00f2d68b5aa83153b
parent3394b51c7d3f5239459ceac7e535e45836d78bd4
wifi: ath12k: Use msdu_end to check MCBC

We are seeing a very low TCP throughput testing with some specific
tools. This is because for sub-frames of an AMSDU, MCBC flag in
mpdu_start may be not valid, and as a result those frames would be
dropped by kernel.

Add a new helper to get it from msdu_end. Also clean up original
helper since it is not needed any more.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230529081609.34567-1-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath12k/dp_rx.c
drivers/net/wireless/ath/ath12k/hal.c
drivers/net/wireless/ath/ath12k/hal.h