Skip to contentSkip to conversation

wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()

PATCH Applied Nicolas Escande 3 participants 10 messages Jan 24, 2025 – Feb 20, 2025 Qualcomm ATH12K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()

When AP-VLAN was added, we did not add HTT_TCL_META_DATA_VALID_HTT flag to the tx_info's meta_data_flags . Without this flag the firmware seems to reject all the broadcast (ap-vlan) frames. So lets add it same as ath11k did it in commit 5e8a373c8699 ("ath11k: Add support for dynamic vlan")

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

Fixes 26dd8ccdba4d ("wifi: ath12k: dynamic VLAN support")
---
 drivers/net/wireless/ath/ath12k/dp_tx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath12k/dp_tx.c +1 -0
index 00437736e0322..0d7a079f4c6d1 100644
@@ -368,6 +368,7 @@ int ath12k_dp_tx(struct ath12k *ar, struct ath12k_link_vif *arvif,
 		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;
 	}
Signature · 1 line
2.48.1
#1 lore raw
Quoted 9 lines · Nicolas Escande

When AP-VLAN was added, we did not add HTT_TCL_META_DATA_VALID_HTT flag to the tx_info's meta_data_flags . Without this flag the firmware seems to reject all the broadcast (ap-vlan) frames. So lets add it same as ath11k did it in commit 5e8a373c8699 ("ath11k: Add support for dynamic vlan")

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

Fixes 26dd8ccdba4d ("wifi: ath12k: dynamic VLAN support")

I left a 'fbx' in the title that needs to be removed here. I'll send a v2 if need be, but feel free to remove it yourselves if you take the patch as is.

#2 lore raw
In reply to Nicolas Escande
Quoted 9 lines · Nicolas Escande

When AP-VLAN was added, we did not add HTT_TCL_META_DATA_VALID_HTT flag to the tx_info's meta_data_flags . Without this flag the firmware seems to reject all the broadcast (ap-vlan) frames. So lets add it same as ath11k did it in commit 5e8a373c8699 ("ath11k: Add support for dynamic vlan")

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

Fixes 26dd8ccdba4d ("wifi: ath12k: dynamic VLAN support")

Thanks for the this. Can you pls resend the patch without fbx in the patch title? The rest looks good.

Vasanth

#3 lore raw
Quoted 8 lines · Vasanthakumar Thiagarajan
Quoted 5 lines · Nicolas Escande

When AP-VLAN was added, we did not add HTT_TCL_META_DATA_VALID_HTT flag to the tx_info's meta_data_flags . Without this flag the firmware seems to reject all the broadcast (ap-vlan) frames. So lets add it same as ath11k did it in commit 5e8a373c8699 ("ath11k: Add support for dynamic vlan")

Quoted 6 lines
Quoted 4 lines

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

Fixes 26dd8ccdba4d ("wifi: ath12k: dynamic VLAN support")

Thanks for the this.

My bad, I meant "Thanks for the fix"

#4 lore raw
In reply to Nicolas Escande
Quoted 4 lines · Nicolas Escande

When AP-VLAN was added, we did not add HTT_TCL_META_DATA_VALID_HTT flag to the tx_info's meta_data_flags . Without this flag the firmware seems to reject all the broadcast (ap-vlan) frames. So lets add it same as ath11k did it in commit 5e8a373c8699 ("ath11k: Add support for dynamic vlan")

checkpatch complains:
WARNING:UNKNOWN_COMMIT_ID: Unknown commit id '5e8a373c8699', maybe rebased or not pulled?

And I don't see such a change in kernel.org

Perhaps this is an out-of-tree change that should be referenced in a different way?

/jeff

#5 lore raw
Quoted 10 lines · Jeff Johnson

checkpatch complains:
WARNING:UNKNOWN_COMMIT_ID: Unknown commit id '5e8a373c8699', maybe rebased or not pulled?

And I don't see such a change in kernel.org

Perhaps this is an out-of-tree change that should be referenced in a different way?

/jeff

Indeed I didn't realize that was not mainline, but just in our internal tree. My bad. Honestly surprised this has never been pushed upstream.

So the corresponding patch I was refering to is this one:
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

How would you like to proceed ? I can respin it without this wrong reference if need be. But if one of you guys has a better fix or something we can drop it too

Thanks

#6 lore raw
Quoted 12 lines · Nicolas Escande
Quoted 10 lines · Jeff Johnson

checkpatch complains:
WARNING:UNKNOWN_COMMIT_ID: Unknown commit id '5e8a373c8699', maybe rebased or not pulled?

And I don't see such a change in kernel.org

Perhaps this is an out-of-tree change that should be referenced in a different way?

/jeff

Quoted 8 lines

Indeed I didn't realize that was not mainline, but just in our internal tree. My bad. Honestly surprised this has never been pushed upstream.

So the corresponding patch I was refering to is this one:
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

How would you like to proceed ? I can respin it without this wrong reference if need be. But if one of you guys has a better fix or something we can drop it too

Let me fix this up in the 'pending' branch

/jeff

#7 lore raw
In reply to Nicolas Escande
Quoted 15 lines · Nicolas Escande
Quoted 10 lines · Jeff Johnson

checkpatch complains:
WARNING:UNKNOWN_COMMIT_ID: Unknown commit id '5e8a373c8699', maybe rebased or not pulled?

And I don't see such a change in kernel.org

Perhaps this is an out-of-tree change that should be referenced in a different way?

/jeff

Indeed I didn't realize that was not mainline, but just in our internal tree. My bad. Honestly surprised this has never been pushed upstream.

Quoted 7 lines

So the corresponding patch I was refering to is this one:
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

How would you like to proceed ? I can respin it without this wrong reference if need be. But if one of you guys has a better fix or something we can drop it too

Thanks

Fixed the subject and description in pending, please check:

https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git/commit/?h=pending&id=e5c718f0c65701ec941ab3121266f33f83ee9803

Applied
#9 lore raw
In reply to Nicolas Escande
Quoted 8 lines · Nicolas Escande

When AP-VLAN was added, we did not add HTT_TCL_META_DATA_VALID_HTT flag to the tx_info's meta_data_flags . Without this flag the firmware seems to reject all the broadcast (ap-vlan) frames. So lets add it same as ath11k did it in commit 5e8a373c8699 ("ath11k: Add support for dynamic vlan")

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

[...]

Applied, thanks!

[1/1] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()

      commit: af1c6007a64e78b729eb5a8d149637a820077bee

Best regards,

Signature · 1 line
Jeff Johnson <[email protected]>