wifi: ath12k: Use HTT_TCL_METADATA_VER_V1 in FTM mode
authorAaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
Fri, 11 Jul 2025 03:54:20 +0000 (09:24 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 15 Jul 2025 16:17:15 +0000 (09:17 -0700)
commit66b3ebc77d23d6574a965bdbfe41de8aeb7f384e
treeb586a90426dd40c64c143175ed9f9290572988fc
parent9d2abd4162fca8a1eb46f664268dffad35c8ad20
wifi: ath12k: Use HTT_TCL_METADATA_VER_V1 in FTM mode

Currently host sends HTT_TCL_METADATA_VER_V2 to the firmware
regardless of the operating mode (Mission or FTM).

Firmware expects additional software information (like peer ID, vdev
ID, and link ID) in Tx packets when HTT_TCL_METADATA_VER_V2 is set.
However, in FTM (Factory Test Mode) mode, no vdev is created on the
host side (this is expected). As a result, the firmware fails to find
the expected vdev during packet processing and ends up dropping
packets.

To fix this, send HTT_TCL_METADATA_VER_V1 in FTM mode because FTM
mode doesn't support HTT_TCL_METADATA_VER_V2.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.5-01651-QCAHKSWPL_SILICONZ-1

Fixes: 5d964966bd3f ("wifi: ath12k: Update HTT_TCL_METADATA version and bit mask definitions")
Signed-off-by: Aaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250711035420.1509029-1-aaradhana.sahu@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/dp.h
drivers/net/wireless/ath/ath12k/dp_tx.c