qcacld-3.0: Add debugs for max allowed tx power

Max tx power limit is received as part of the
WMI_VDEV_START_RESP_EVENTID. Add debugs to print the
max_allowed_tx_power in host.

Change-Id: I4ca0d4a4a2a1e452b8a6a9f1c48ad52fcd2f6213
CRs-Fixed: 3167045
This commit is contained in:
Surya Prakash Sivaraj 2022-12-28 17:06:03 +05:30
commit df4878edf3
2 changed files with 5 additions and 2 deletions

View file

@ -2178,8 +2178,9 @@ void lim_calculate_tpc(struct mac_context *mac,
mlme_obj->reg_tpc_obj.eirp_power = reg_max;
mlme_obj->reg_tpc_obj.power_type_6g = ap_power_type_6g;
pe_debug("num_pwr_levels: %d, is_psd_power: %d, total eirp_power: %d, ap_pwr_type: %d",
num_pwr_levels, is_psd_power, reg_max, ap_power_type_6g);
pe_debug("num_pwr_levels: %d, is_psd_power: %d, total eirp_power: %d, ap_pwr_type: %d tx_pwrlimit: %d",
num_pwr_levels, is_psd_power, reg_max, ap_power_type_6g,
mlme_obj->mgmt.generic.tx_pwrlimit);
}
/**

View file

@ -1249,6 +1249,8 @@ QDF_STATUS wma_vdev_start_resp_handler(struct vdev_mlme_obj *vdev_mlme,
return QDF_STATUS_E_INVAL;
mlme_obj->mgmt.generic.tx_pwrlimit = rsp->max_allowed_tx_power;
wma_debug("Max allowed tx power: %d", rsp->max_allowed_tx_power);
if (iface->type == WMI_VDEV_TYPE_STA)
assoc_type = mlme_get_assoc_type(vdev_mlme->vdev);