[PATCH ath-next] wifi: ath12k: Send WMI_VDEV_SET_TPC_POWER_CMD for AP vdev

Vasanthakumar Thiagarajan vasanthakumar.thiagarajan at oss.qualcomm.com
Thu Jun 26 10:09:36 PDT 2025



On 6/6/2025 4:53 PM, Hariharan Basuthkar wrote:
> The power value is 6 dBm on an AP operating on the 6 GHz channel.
> This is a very low value.
> 
> On 6 GHz, the target computes the EIRP based on the power values sent
> in the WMI_VDEV_SET_TPC_POWER_CMD. Currently, this is being sent only
> for station interfaces and not for AP interfaces.
> 
> Therefore, add AP vdev to the condition in
> ath12k_mac_station_supports_tpc() and rename
> ath12k_mac_station_supports_tpc() to ath12k_mac_supports_tpc().
> 
> For a AP vdev, hardcode ap_power_type as IEEE80211_REG_LPI_AP, which is
> filled in the WMI_VDEV_SET_TPC_POWER_CMDID sent to the target.
> Currently, LPI is the only supported AP power mode. Since there is
> no method currently to set the AP power mode from user-space, the
> power mode is hard-coded to LPI.
> 
> Retain the existing logic for populating the power mode for a station
> vdev.
> 
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
> 
> Signed-off-by: Hariharan Basuthkar <quic_hbasuthk at quicinc.com>

Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan at oss.qualcomm.com>



More information about the ath12k mailing list