OSDN Git Service

wifi: ath12k: fix packets are sent in native wifi mode while we set raw mode
authorAaradhana Sahu <quic_aarasahu@quicinc.com>
Mon, 20 Mar 2023 05:24:27 +0000 (10:54 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 24 Mar 2023 14:48:34 +0000 (16:48 +0200)
commite93bbd65547ea8073b707c9034c3f051f8018614
tree9b18b64e95f15347a581e2ec5cf46cc561c9a3fb
parent4b50d4205207ab706b3ecd0d122c014845b8e1f0
wifi: ath12k: fix packets are sent in native wifi mode while we set raw mode

Currently, if we set raw mode as encap type, packets are sent
in native wifi mode which is default mode. This is caused by
no check being present for raw mode in ath12k_dp_tx_get_encap_type
function, so it's always going in native wifi mode.

Fix, this issue by adding check condition for raw mode.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Aaradhana Sahu <quic_aarasahu@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230320052427.12271-1-quic_aarasahu@quicinc.com
drivers/net/wireless/ath/ath12k/dp_tx.c