Skip to content

Commit 07c34ca

Browse files
Sathishkumar Muruganandamjeff-t-johnson
authored andcommitted
wifi: ath12k: encode max Tx power in scan channel list command
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: d889913 ("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> Tested-by: Nicolas Escande <nico.escande@gmail.com> Link: https://patch.msgid.link/20250107-add_max_reg_pwr_in_scan_ch_list_cmd-v1-1-70d9963a21e4@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
1 parent efb24b1 commit 07c34ca

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+2
-0
lines changed

drivers/net/wireless/ath/ath12k/wmi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,6 +2832,8 @@ int ath12k_wmi_send_scan_chan_list_cmd(struct ath12k *ar,
28322832
WMI_CHAN_REG_INFO1_REG_CLS);
28332833
*reg2 |= le32_encode_bits(channel_arg->antennamax,
28342834
WMI_CHAN_REG_INFO2_ANT_MAX);
2835+
*reg2 |= le32_encode_bits(channel_arg->maxregpower,
2836+
WMI_CHAN_REG_INFO2_MAX_TX_PWR);
28352837

28362838
ath12k_dbg(ar->ab, ATH12K_DBG_WMI,
28372839
"WMI chan scan list chan[%d] = %u, chan_info->info %8x\n",

0 commit comments

Comments
 (0)