Skip to contentSkip to conversation

wifi: ath12k: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override

PATCH Applied Nicolas Escande 3 participants 4 messages Jan 27, 2025 – Jan 31, 2025 Qualcomm ATH12K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 wifi: ath12k: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override

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 will be needed in the future to make broadcast frames work with ethernet encapsulation.

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

---
v2:
- removed spurious 'fbx' from title
- removed fixes tag as the problem it fixes is not yet enabled mainstream

    see https://lore.kernel.org/linux-wireless/[email protected]/ 
v1: 
  - initial version
---
 drivers/net/wireless/ath/ath12k/dp_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath12k/dp_tx.c +1 -1
index e0b85f959cd4a..00437736e0322 100644
@@ -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,
Signature · 1 line
2.48.1
#1 lore raw
Quoted 2 lines · Nicolas Escande

Since inception there is an obvious typo laying around in ath12k_hal_tx_cmd_ext_desc_setup(). Instead of intitializing + adding

WARNING:TYPO_SPELLING: 'intitializing' may be misspelled - perhaps 'initializing'?

I'll fix in the 'pending' branch

Reviewed-by on v2 1/1
#2 lore raw
In reply to Nicolas Escande
Quoted 24 lines · Nicolas Escande

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 will be needed in the future to make broadcast frames work with ethernet encapsulation.

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

---
v2:
- removed spurious 'fbx' from title
- removed fixes tag as the problem it fixes is not yet enabled mainstream

     see https://lore.kernel.org/linux-wireless/[email protected]/
v1:
   - initial version
---
  drivers/net/wireless/ath/ath12k/dp_tx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath12k/dp_tx.c +0 -0
index e0b85f959cd4a..00437736e0322 100644

drivers/net/wireless/ath/ath12k/dp_tx.c static void ath12k_hal_tx_cmd_ext_desc_setup(struct ath12k_base *ab, · line 123

Quoted 8 lines
drivers/net/wireless/ath/ath12k/dp_tx.c +1 -1
@@ -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,
Applied
#3 lore raw
In reply to Nicolas Escande
Quoted 8 lines · Nicolas Escande

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 will be needed in the future to make broadcast frames work with ethernet encapsulation.

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

[...]

Applied, thanks!

[1/1] wifi: ath12k: fix ath12k_hal_tx_cmd_ext_desc_setup() info1 override

      commit: df11edfba49e5fb69f4c9e7cb76082b89c417f78

Best regards,

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