* [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
@ 2025-01-24 11:33 Nicolas Escande
2025-01-24 15:31 ` Karthikeyan Periyasamy
0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Escande @ 2025-01-24 11:33 UTC (permalink / raw)
To: ath12k; +Cc: linux-wireless
Since inception there is an obvious typo laying around in
ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding
flags to tcl_ext_cmd->info1, we initialize + override. This is needed to
make broadcast frames work with ethernet encapsulation.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
---
drivers/net/wireless/ath/ath12k/dp_tx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath12k/dp_tx.c b/drivers/net/wireless/ath/ath12k/dp_tx.c
index e0b85f959cd4a..00437736e0322 100644
--- a/drivers/net/wireless/ath/ath12k/dp_tx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_tx.c
@@ -117,7 +117,7 @@ static void ath12k_hal_tx_cmd_ext_desc_setup(struct ath12k_base *ab,
le32_encode_bits(ti->data_len,
HAL_TX_MSDU_EXT_INFO1_BUF_LEN);
- tcl_ext_cmd->info1 = le32_encode_bits(1, HAL_TX_MSDU_EXT_INFO1_EXTN_OVERRIDE) |
+ tcl_ext_cmd->info1 |= le32_encode_bits(1, HAL_TX_MSDU_EXT_INFO1_EXTN_OVERRIDE) |
le32_encode_bits(ti->encap_type,
HAL_TX_MSDU_EXT_INFO1_ENCAP_TYPE) |
le32_encode_bits(ti->encrypt_type,
--
2.48.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-24 11:33 [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override Nicolas Escande
@ 2025-01-24 15:31 ` Karthikeyan Periyasamy
2025-01-25 12:53 ` Nicolas Escande
0 siblings, 1 reply; 8+ messages in thread
From: Karthikeyan Periyasamy @ 2025-01-24 15:31 UTC (permalink / raw)
To: Nicolas Escande, ath12k; +Cc: linux-wireless
On 1/24/2025 5:03 PM, Nicolas Escande wrote:
> Since inception there is an obvious typo laying around in
> ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding
> flags to tcl_ext_cmd->info1, we initialize + override. This is needed to
> make broadcast frames work with ethernet encapsulation.
>
SUPPORTS_TX_ENCAP_OFFLOAD not yet advertised by ath12k. How it work with
ethernet encapsulation ?
--
Karthikeyan Periyasamy
--
கார்த்திகேயன் பெரியசாமி
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-24 15:31 ` Karthikeyan Periyasamy
@ 2025-01-25 12:53 ` Nicolas Escande
2025-01-25 14:54 ` Vasanthakumar Thiagarajan
0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Escande @ 2025-01-25 12:53 UTC (permalink / raw)
To: Karthikeyan Periyasamy, ath12k; +Cc: linux-wireless
On Fri Jan 24, 2025 at 4:31 PM CET, Karthikeyan Periyasamy wrote:
> On 1/24/2025 5:03 PM, Nicolas Escande wrote:
>> Since inception there is an obvious typo laying around in
>> ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding
>> flags to tcl_ext_cmd->info1, we initialize + override. This is needed to
>> make broadcast frames work with ethernet encapsulation.
>>
>
> SUPPORTS_TX_ENCAP_OFFLOAD not yet advertised by ath12k. How it work with
> ethernet encapsulation ?
Yes indeed, I made a small patch that adds the right hw features via a module
param like one of your CLO patches did:
+ if (ath12k_frame_mode == ATH12K_HW_TXRX_ETHERNET) {
+ ieee80211_hw_set(hw, SUPPORTS_TX_ENCAP_OFFLOAD);
+ ieee80211_hw_set(hw, SUPPORTS_RX_DECAP_OFFLOAD);
+ }
+
But maybe as this feature is not yet enabled upstream I need remove the fixes
tag ? After all It seems that in native wifi this bug causes no harm...
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-25 12:53 ` Nicolas Escande
@ 2025-01-25 14:54 ` Vasanthakumar Thiagarajan
2025-01-25 20:21 ` Nicolas Escande
0 siblings, 1 reply; 8+ messages in thread
From: Vasanthakumar Thiagarajan @ 2025-01-25 14:54 UTC (permalink / raw)
To: Nicolas Escande, Karthikeyan Periyasamy, ath12k; +Cc: linux-wireless
On 1/25/2025 6:23 PM, Nicolas Escande wrote:
> On Fri Jan 24, 2025 at 4:31 PM CET, Karthikeyan Periyasamy wrote:
>> On 1/24/2025 5:03 PM, Nicolas Escande wrote:
>>> Since inception there is an obvious typo laying around in
>>> ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding
>>> flags to tcl_ext_cmd->info1, we initialize + override. This is needed to
>>> make broadcast frames work with ethernet encapsulation.
>>>
>>
>> SUPPORTS_TX_ENCAP_OFFLOAD not yet advertised by ath12k. How it work with
>> ethernet encapsulation ?
>
> Yes indeed, I made a small patch that adds the right hw features via a module
> param like one of your CLO patches did:
>
> + if (ath12k_frame_mode == ATH12K_HW_TXRX_ETHERNET) {
> + ieee80211_hw_set(hw, SUPPORTS_TX_ENCAP_OFFLOAD);
> + ieee80211_hw_set(hw, SUPPORTS_RX_DECAP_OFFLOAD);
> + }
> +
>
> But maybe as this feature is not yet enabled upstream I need remove the fixes
> tag ? After all It seems that in native wifi this bug causes no harm...
>
That's right, also you may want to remove fbx prefix in the patch title
as this change has nothing to do with any particular platform/hardware.
Vasanth
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-25 14:54 ` Vasanthakumar Thiagarajan
@ 2025-01-25 20:21 ` Nicolas Escande
2025-01-26 3:14 ` Karthikeyan Periyasamy
2025-01-26 18:16 ` Jeff Johnson
0 siblings, 2 replies; 8+ messages in thread
From: Nicolas Escande @ 2025-01-25 20:21 UTC (permalink / raw)
To: Vasanthakumar Thiagarajan, Karthikeyan Periyasamy, ath12k; +Cc: linux-wireless
On Sat Jan 25, 2025 at 3:54 PM CET, Vasanthakumar Thiagarajan wrote:
>
>
> On 1/25/2025 6:23 PM, Nicolas Escande wrote:
>> On Fri Jan 24, 2025 at 4:31 PM CET, Karthikeyan Periyasamy wrote:
>>> On 1/24/2025 5:03 PM, Nicolas Escande wrote:
>>>> Since inception there is an obvious typo laying around in
>>>> ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding
>>>> flags to tcl_ext_cmd->info1, we initialize + override. This is needed to
>>>> make broadcast frames work with ethernet encapsulation.
>>>>
>>>
>>> SUPPORTS_TX_ENCAP_OFFLOAD not yet advertised by ath12k. How it work with
>>> ethernet encapsulation ?
>>
>> Yes indeed, I made a small patch that adds the right hw features via a module
>> param like one of your CLO patches did:
>>
>> + if (ath12k_frame_mode == ATH12K_HW_TXRX_ETHERNET) {
>> + ieee80211_hw_set(hw, SUPPORTS_TX_ENCAP_OFFLOAD);
>> + ieee80211_hw_set(hw, SUPPORTS_RX_DECAP_OFFLOAD);
>> + }
>> +
>>
>> But maybe as this feature is not yet enabled upstream I need remove the fixes
>> tag ? After all It seems that in native wifi this bug causes no harm...
>>
>
> That's right, also you may want to remove fbx prefix in the patch title
> as this change has nothing to do with any particular platform/hardware.
Yep indeed that fbx thing is an oversight on my part. I'll send an updated v2.
So You guys prefer I remove the fixes tag then ?
>
> Vasanth
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-25 20:21 ` Nicolas Escande
@ 2025-01-26 3:14 ` Karthikeyan Periyasamy
2025-01-26 18:16 ` Jeff Johnson
1 sibling, 0 replies; 8+ messages in thread
From: Karthikeyan Periyasamy @ 2025-01-26 3:14 UTC (permalink / raw)
To: Nicolas Escande, Vasanthakumar Thiagarajan, ath12k; +Cc: linux-wireless
On 1/26/2025 1:51 AM, Nicolas Escande wrote:
> On Sat Jan 25, 2025 at 3:54 PM CET, Vasanthakumar Thiagarajan wrote:
>>
>>
>> On 1/25/2025 6:23 PM, Nicolas Escande wrote:
>>> On Fri Jan 24, 2025 at 4:31 PM CET, Karthikeyan Periyasamy wrote:
>>>> On 1/24/2025 5:03 PM, Nicolas Escande wrote:
>>>>> Since inception there is an obvious typo laying around in
>>>>> ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding
>>>>> flags to tcl_ext_cmd->info1, we initialize + override. This is needed to
>>>>> make broadcast frames work with ethernet encapsulation.
>>>>>
>>>>
>>>> SUPPORTS_TX_ENCAP_OFFLOAD not yet advertised by ath12k. How it work with
>>>> ethernet encapsulation ?
>>>
>>> Yes indeed, I made a small patch that adds the right hw features via a module
>>> param like one of your CLO patches did:
>>>
>>> + if (ath12k_frame_mode == ATH12K_HW_TXRX_ETHERNET) {
>>> + ieee80211_hw_set(hw, SUPPORTS_TX_ENCAP_OFFLOAD);
>>> + ieee80211_hw_set(hw, SUPPORTS_RX_DECAP_OFFLOAD);
>>> + }
>>> +
>>>
>>> But maybe as this feature is not yet enabled upstream I need remove the fixes
>>> tag ? After all It seems that in native wifi this bug causes no harm...
>>>
>>
>> That's right, also you may want to remove fbx prefix in the patch title
>> as this change has nothing to do with any particular platform/hardware.
> Yep indeed that fbx thing is an oversight on my part. I'll send an updated v2.
>
> So You guys prefer I remove the fixes tag then ?
>
Sure also you need to mention "ethernet encapsulation enabled in future"
--
Karthikeyan Periyasamy
--
கார்த்திகேயன் பெரியசாமி
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-25 20:21 ` Nicolas Escande
2025-01-26 3:14 ` Karthikeyan Periyasamy
@ 2025-01-26 18:16 ` Jeff Johnson
2025-01-27 7:07 ` Nicolas Escande
1 sibling, 1 reply; 8+ messages in thread
From: Jeff Johnson @ 2025-01-26 18:16 UTC (permalink / raw)
To: Nicolas Escande, Vasanthakumar Thiagarajan,
Karthikeyan Periyasamy, ath12k
Cc: linux-wireless
On 1/25/2025 12:21 PM, Nicolas Escande wrote:
> So You guys prefer I remove the fixes tag then ?
Yes, please don't add a Fixes: tag if no current upstream functionality is
broken. This may cause the 'stable' team to spend unnecessary time backporting
the change for no reason.
/jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] wifi: ath12k: fbx: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override
2025-01-26 18:16 ` Jeff Johnson
@ 2025-01-27 7:07 ` Nicolas Escande
0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Escande @ 2025-01-27 7:07 UTC (permalink / raw)
To: Jeff Johnson, Vasanthakumar Thiagarajan, Karthikeyan Periyasamy,
ath12k
Cc: linux-wireless
On Sun Jan 26, 2025 at 7:16 PM CET, Jeff Johnson wrote:
> On 1/25/2025 12:21 PM, Nicolas Escande wrote:
>> So You guys prefer I remove the fixes tag then ?
>
> Yes, please don't add a Fixes: tag if no current upstream functionality is
> broken. This may cause the 'stable' team to spend unnecessary time backporting
> the change for no reason.
>
> /jeff
Sure, no problem, I'll send an updated v2.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-01-27 7:07 UTC | newest]
Thread overview: 8+ 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: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override Nicolas Escande
2025-01-24 15:31 ` Karthikeyan Periyasamy
2025-01-25 12:53 ` Nicolas Escande
2025-01-25 14:54 ` Vasanthakumar Thiagarajan
2025-01-25 20:21 ` Nicolas Escande
2025-01-26 3:14 ` Karthikeyan Periyasamy
2025-01-26 18:16 ` Jeff Johnson
2025-01-27 7:07 ` Nicolas Escande
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox