linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
@ 2025-01-24 11:33 Nicolas Escande
  2025-01-25 20:23 ` Nicolas Escande
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Nicolas Escande @ 2025-01-24 11:33 UTC (permalink / raw)
  To: ath12k; +Cc: linux-wireless

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")
Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
---
 drivers/net/wireless/ath/ath12k/dp_tx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ath/ath12k/dp_tx.c b/drivers/net/wireless/ath/ath12k/dp_tx.c
index 00437736e0322..0d7a079f4c6d1 100644
--- a/drivers/net/wireless/ath/ath12k/dp_tx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_tx.c
@@ -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;
 	}
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-01-24 11:33 [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx() Nicolas Escande
@ 2025-01-25 20:23 ` Nicolas Escande
  2025-02-12  4:07 ` Vasanthakumar Thiagarajan
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Nicolas Escande @ 2025-01-25 20:23 UTC (permalink / raw)
  To: Nicolas Escande, ath12k; +Cc: linux-wireless

On Fri Jan 24, 2025 at 12:33 PM CET, Nicolas Escande wrote:
> 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")
> Signed-off-by: Nicolas Escande <nico.escande@gmail.com>

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-01-24 11:33 [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx() Nicolas Escande
  2025-01-25 20:23 ` Nicolas Escande
@ 2025-02-12  4:07 ` Vasanthakumar Thiagarajan
  2025-02-12  4:09   ` Vasanthakumar Thiagarajan
  2025-02-19 17:58 ` Jeff Johnson
  2025-02-20 21:40 ` Jeff Johnson
  3 siblings, 1 reply; 10+ messages in thread
From: Vasanthakumar Thiagarajan @ 2025-02-12  4:07 UTC (permalink / raw)
  To: Nicolas Escande, ath12k; +Cc: linux-wireless



On 1/24/2025 5:03 PM, Nicolas Escande wrote:
> 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")
> Signed-off-by: Nicolas Escande <nico.escande@gmail.com>

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

Vasanth

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-02-12  4:07 ` Vasanthakumar Thiagarajan
@ 2025-02-12  4:09   ` Vasanthakumar Thiagarajan
  0 siblings, 0 replies; 10+ messages in thread
From: Vasanthakumar Thiagarajan @ 2025-02-12  4:09 UTC (permalink / raw)
  To: Nicolas Escande, ath12k; +Cc: linux-wireless



On 2/12/2025 9:37 AM, Vasanthakumar Thiagarajan wrote:
> 
> 
> On 1/24/2025 5:03 PM, Nicolas Escande wrote:
>> 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")
>> Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
> 
> Thanks for the this.

My bad, I meant "Thanks for the fix"

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-01-24 11:33 [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx() Nicolas Escande
  2025-01-25 20:23 ` Nicolas Escande
  2025-02-12  4:07 ` Vasanthakumar Thiagarajan
@ 2025-02-19 17:58 ` Jeff Johnson
  2025-02-19 18:33   ` Nicolas Escande
  2025-02-20 21:40 ` Jeff Johnson
  3 siblings, 1 reply; 10+ messages in thread
From: Jeff Johnson @ 2025-02-19 17:58 UTC (permalink / raw)
  To: Nicolas Escande, ath12k; +Cc: linux-wireless

On 1/24/2025 3:33 AM, Nicolas Escande wrote:
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-02-19 17:58 ` Jeff Johnson
@ 2025-02-19 18:33   ` Nicolas Escande
  2025-02-20 15:18     ` Jeff Johnson
  2025-02-20 15:46     ` Jeff Johnson
  0 siblings, 2 replies; 10+ messages in thread
From: Nicolas Escande @ 2025-02-19 18:33 UTC (permalink / raw)
  To: Jeff Johnson, ath12k; +Cc: linux-wireless

On Wed Feb 19, 2025 at 6:58 PM CET, Jeff Johnson wrote:
>
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-02-19 18:33   ` Nicolas Escande
@ 2025-02-20 15:18     ` Jeff Johnson
  2025-02-20 15:46     ` Jeff Johnson
  1 sibling, 0 replies; 10+ messages in thread
From: Jeff Johnson @ 2025-02-20 15:18 UTC (permalink / raw)
  To: Nicolas Escande, ath12k; +Cc: linux-wireless

On 2/19/2025 10:33 AM, Nicolas Escande wrote:
> On Wed Feb 19, 2025 at 6:58 PM CET, Jeff Johnson wrote:
>>
>> 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

Let me fix this up in the 'pending' branch

/jeff

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-02-19 18:33   ` Nicolas Escande
  2025-02-20 15:18     ` Jeff Johnson
@ 2025-02-20 15:46     ` Jeff Johnson
  2025-02-20 17:49       ` Nicolas Escande
  1 sibling, 1 reply; 10+ messages in thread
From: Jeff Johnson @ 2025-02-20 15:46 UTC (permalink / raw)
  To: Nicolas Escande, ath12k; +Cc: linux-wireless

On 2/19/2025 10:33 AM, Nicolas Escande wrote:
> On Wed Feb 19, 2025 at 6:58 PM CET, Jeff Johnson wrote:
>>
>> 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

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-02-20 15:46     ` Jeff Johnson
@ 2025-02-20 17:49       ` Nicolas Escande
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Escande @ 2025-02-20 17:49 UTC (permalink / raw)
  To: Jeff Johnson, ath12k; +Cc: linux-wireless

On Thu Feb 20, 2025 at 4:46 PM CET, Jeff Johnson wrote:
>
> 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

Perfect, Thanks a lot Jeff

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx()
  2025-01-24 11:33 [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx() Nicolas Escande
                   ` (2 preceding siblings ...)
  2025-02-19 17:58 ` Jeff Johnson
@ 2025-02-20 21:40 ` Jeff Johnson
  3 siblings, 0 replies; 10+ messages in thread
From: Jeff Johnson @ 2025-02-20 21:40 UTC (permalink / raw)
  To: ath12k, Nicolas Escande; +Cc: linux-wireless


On Fri, 24 Jan 2025 12:33:31 +0100, Nicolas Escande wrote:
> 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,
-- 
Jeff Johnson <jeff.johnson@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-02-20 21:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-24 11:33 [PATCH] wifi: ath12k: fbx: Add missing htt_metadata flag in ath12k_dp_tx() Nicolas Escande
2025-01-25 20:23 ` Nicolas Escande
2025-02-12  4:07 ` Vasanthakumar Thiagarajan
2025-02-12  4:09   ` Vasanthakumar Thiagarajan
2025-02-19 17:58 ` Jeff Johnson
2025-02-19 18:33   ` Nicolas Escande
2025-02-20 15:18     ` Jeff Johnson
2025-02-20 15:46     ` Jeff Johnson
2025-02-20 17:49       ` Nicolas Escande
2025-02-20 21:40 ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).