* [PATCH] wifi: ath12k: encode max Tx power in scan channel list command
@ 2025-01-07 4:01 Aditya Kumar Singh
2025-01-08 9:05 ` Nicolas Escande
2025-01-26 18:45 ` Jeff Johnson
0 siblings, 2 replies; 3+ messages in thread
From: Aditya Kumar Singh @ 2025-01-07 4:01 UTC (permalink / raw)
To: Kalle Valo, Jeff Johnson, Vasanthakumar Thiagarajan,
Bhagavathi Perumal S, P Praneesh, Karthikeyan Periyasamy,
Pradeep Kumar Chitrapu
Cc: Kalle Valo, Balamurugan Selvarajan, Carl Huang, Wen Gong,
linux-wireless, ath12k, linux-kernel, Sathishkumar Muruganandam,
Aditya Kumar Singh
From: Sathishkumar Muruganandam <quic_murugana@quicinc.com>
Currently, when sending the scan channel list command to the firmware, the
maximum Tx power is not encoded in the reg2 member. This omission causes
the firmware to be unaware of the host's maximum Tx power, leading to
incorrect Tx power derivation at firmware level.
To resolve this issue, encode the maximum Tx power in the scan channel list
command before sending it to firmware.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: Sathishkumar Muruganandam <quic_murugana@quicinc.com>
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
---
drivers/net/wireless/ath/ath12k/wmi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c
index 562b0615ed065d094f5d7709cafeb22c41f02d17..69f661a867bc295deeb6632dfa96d63c39234b07 100644
--- a/drivers/net/wireless/ath/ath12k/wmi.c
+++ b/drivers/net/wireless/ath/ath12k/wmi.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/skbuff.h>
#include <linux/ctype.h>
@@ -2794,6 +2794,8 @@ int ath12k_wmi_send_scan_chan_list_cmd(struct ath12k *ar,
WMI_CHAN_REG_INFO1_REG_CLS);
*reg2 |= le32_encode_bits(channel_arg->antennamax,
WMI_CHAN_REG_INFO2_ANT_MAX);
+ *reg2 |= le32_encode_bits(channel_arg->maxregpower,
+ WMI_CHAN_REG_INFO2_MAX_TX_PWR);
ath12k_dbg(ar->ab, ATH12K_DBG_WMI,
"WMI chan scan list chan[%d] = %u, chan_info->info %8x\n",
---
base-commit: 09fa3b6974a1245ddd0751747609431494ba5b4f
change-id: 20250106-add_max_reg_pwr_in_scan_ch_list_cmd-732e9f43e881
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] wifi: ath12k: encode max Tx power in scan channel list command
2025-01-07 4:01 [PATCH] wifi: ath12k: encode max Tx power in scan channel list command Aditya Kumar Singh
@ 2025-01-08 9:05 ` Nicolas Escande
2025-01-26 18:45 ` Jeff Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Escande @ 2025-01-08 9:05 UTC (permalink / raw)
To: Aditya Kumar Singh, Kalle Valo, Jeff Johnson,
Vasanthakumar Thiagarajan, Bhagavathi Perumal S, P Praneesh,
Karthikeyan Periyasamy, Pradeep Kumar Chitrapu
Cc: Kalle Valo, Balamurugan Selvarajan, Carl Huang, Wen Gong,
linux-wireless, ath12k, linux-kernel, Sathishkumar Muruganandam
On Tue Jan 7, 2025 at 5:01 AM CET, Aditya Kumar Singh wrote:
> From: Sathishkumar Muruganandam <quic_murugana@quicinc.com>
>
> Currently, when sending the scan channel list command to the firmware, the
> maximum Tx power is not encoded in the reg2 member. This omission causes
> the firmware to be unaware of the host's maximum Tx power, leading to
> incorrect Tx power derivation at firmware level.
>
> To resolve this issue, encode the maximum Tx power in the scan channel list
> command before sending it to firmware.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
>
> Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
> Signed-off-by: Sathishkumar Muruganandam <quic_murugana@quicinc.com>
> Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Not sure if those are in the righ tag format but
Tested-by: Nicolas Escande <nico.escande@gmail.com>
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3-03253.1-QCAHKSWPL_SILICONZ-27
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] wifi: ath12k: encode max Tx power in scan channel list command
2025-01-07 4:01 [PATCH] wifi: ath12k: encode max Tx power in scan channel list command Aditya Kumar Singh
2025-01-08 9:05 ` Nicolas Escande
@ 2025-01-26 18:45 ` Jeff Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Johnson @ 2025-01-26 18:45 UTC (permalink / raw)
To: Kalle Valo, Jeff Johnson, Vasanthakumar Thiagarajan,
Bhagavathi Perumal S, P Praneesh, Karthikeyan Periyasamy,
Pradeep Kumar Chitrapu, Aditya Kumar Singh
Cc: Kalle Valo, Balamurugan Selvarajan, Carl Huang, Wen Gong,
linux-wireless, ath12k, linux-kernel, Sathishkumar Muruganandam
On Tue, 07 Jan 2025 09:31:39 +0530, Aditya Kumar Singh wrote:
> Currently, when sending the scan channel list command to the firmware, the
> maximum Tx power is not encoded in the reg2 member. This omission causes
> the firmware to be unaware of the host's maximum Tx power, leading to
> incorrect Tx power derivation at firmware level.
>
> To resolve this issue, encode the maximum Tx power in the scan channel list
> command before sending it to firmware.
>
> [...]
Applied, thanks!
[1/1] wifi: ath12k: encode max Tx power in scan channel list command
commit: 07c34cad10ab0ac8b06ede8a7fbc55ecf2efa3e6
Best regards,
--
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-26 18:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07 4:01 [PATCH] wifi: ath12k: encode max Tx power in scan channel list command Aditya Kumar Singh
2025-01-08 9:05 ` Nicolas Escande
2025-01-26 18:45 ` Jeff Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox