]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath12k: Add missing htt_metadata flag in ath12k_dp_tx()
authorNicolas Escande <nico.escande@gmail.com>
Fri, 24 Jan 2025 11:33:31 +0000 (12:33 +0100)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 20 Feb 2025 21:37:43 +0000 (13:37 -0800)
When AP-VLAN support was added, the HTT_TCL_META_DATA_VALID_HTT flag
was not added to the tx_info's meta_data_flags. Without this flag the
firmware seems to reject all the broadcast (ap-vlan) frames. So add
the flag, just as ath11k did it in the downstream QSDK project[1].

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1

Fixes: 26dd8ccdba4d ("wifi: ath12k: dynamic VLAN support")
Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
Link: https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/207-ath11k-Add-support-for-dynamic-vlan.patch
Link: https://patch.msgid.link/20250124113331.93476-1-nico.escande@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/dp_tx.c

index 4e11b7b61b823a580000fde337f20f108e138bcf..46a55554c19c8f860902497a08906e93b955f305 100644 (file)
@@ -384,6 +384,7 @@ map:
                add_htt_metadata = true;
                msdu_ext_desc = true;
                ti.flags0 |= u32_encode_bits(1, HAL_TCL_DATA_CMD_INFO2_TO_FW);
+               ti.meta_data_flags |= HTT_TCL_META_DATA_VALID_HTT;
                ti.encap_type = HAL_TCL_ENCAP_TYPE_RAW;
                ti.encrypt_type = HAL_ENCRYPT_TYPE_OPEN;
        }