wifi: ath11k: fix tx status reporting in encap offload mode
authorPradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
Mon, 17 Apr 2023 10:35:02 +0000 (13:35 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 19 Apr 2023 14:23:22 +0000 (17:23 +0300)
commit6257c702264c44d74c6b71f0c62a7665da2dc356
treedc60720a6955b9656833303130d76b76684dde53
parent20487cc3ff36bbfa9505f0a078ba98f09abfc717
wifi: ath11k: fix tx status reporting in encap offload mode

ieee80211_tx_status() treats packets in 802.11 frame format and
tries to extract sta address from packet header. When tx encap
offload is enabled, this becomes invalid operation. Hence, switch
to using ieee80211_tx_status_ext() after filling in station
address for handling both 802.11 and 802.3 frames.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230403195738.25367-2-quic_pradeepc@quicinc.com
drivers/net/wireless/ath/ath11k/dp.h
drivers/net/wireless/ath/ath11k/dp_tx.c
drivers/net/wireless/ath/ath11k/dp_tx.h