Skip to content

Commit e93bbd6

Browse files
Aaradhana Sahukvalo
authored andcommitted
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
1 parent 4b50d42 commit e93bbd6

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+4
-0
lines changed

drivers/net/wireless/ath/ath12k/dp_tx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ static enum hal_tcl_encap_type
1313
ath12k_dp_tx_get_encap_type(struct ath12k_vif *arvif, struct sk_buff *skb)
1414
{
1515
struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
16+
struct ath12k_base *ab = arvif->ar->ab;
17+
18+
if (test_bit(ATH12K_FLAG_RAW_MODE, &ab->dev_flags))
19+
return HAL_TCL_ENCAP_TYPE_RAW;
1620

1721
if (tx_info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP)
1822
return HAL_TCL_ENCAP_TYPE_ETHERNET;

0 commit comments

Comments
 (0)