diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 2244e3a79e46..3d1bf00b124b 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -10793,7 +10793,7 @@ static int hdd_init_mws_coex(struct hdd_context *hdd_ctx) */ static int hdd_features_init(struct hdd_context *hdd_ctx) { - tSirTxPowerLimit hddtxlimit; + struct tx_power_limit hddtxlimit; QDF_STATUS status; int ret; mac_handle_t mac_handle; diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index acbd04f9bfcd..f5e9bd60c060 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -3048,11 +3048,11 @@ typedef struct { uint8_t throttle_duty_cycle_tbl[WLAN_THROTTLE_DUTY_CYCLE_LEVEL_MAX]; } t_thermal_mgmt, *tp_thermal_mgmt; -typedef struct sSirTxPowerLimit { +struct tx_power_limit { /* Thermal limits for 2g and 5g */ uint32_t txPower2g; uint32_t txPower5g; -} tSirTxPowerLimit; +}; enum bad_peer_thresh_levels { WLAN_WMA_IEEE80211_B_LEVEL = 0, diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index c71758eec277..8a0afe29068c 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -945,7 +945,8 @@ int sme_set_addba_accept(mac_handle_t mac_handle, uint8_t session_id, QDF_STATUS sme_init_thermal_info(mac_handle_t mac_handle); QDF_STATUS sme_set_thermal_level(mac_handle_t mac_handle, uint8_t level); -QDF_STATUS sme_txpower_limit(mac_handle_t mac_handle, tSirTxPowerLimit *psmetx); +QDF_STATUS sme_txpower_limit(mac_handle_t mac_handle, + struct tx_power_limit *psmetx); /** * sme_get_link_speed() - Retrieve current link speed diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index ac0c7746cef3..320d468653af 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -8957,13 +8957,14 @@ QDF_STATUS sme_set_thermal_level(mac_handle_t mac_handle, uint8_t level) * psmetx : power limits for 2g/5g * Return QDF_STATUS */ -QDF_STATUS sme_txpower_limit(mac_handle_t mac_handle, tSirTxPowerLimit *psmetx) +QDF_STATUS sme_txpower_limit(mac_handle_t mac_handle, + struct tx_power_limit *psmetx) { QDF_STATUS status = QDF_STATUS_SUCCESS; QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; struct scheduler_msg message = {0}; struct mac_context *mac = MAC_CONTEXT(mac_handle); - tSirTxPowerLimit *tx_power_limit; + struct tx_power_limit *tx_power_limit; tx_power_limit = qdf_mem_malloc(sizeof(*tx_power_limit)); if (!tx_power_limit) diff --git a/core/wma/inc/wma_internal.h b/core/wma/inc/wma_internal.h index 611e56d560ab..d8a35a042c7b 100644 --- a/core/wma/inc/wma_internal.h +++ b/core/wma/inc/wma_internal.h @@ -852,7 +852,7 @@ int wma_pdev_temperature_evt_handler(void *handle, uint8_t *event, uint32_t len); QDF_STATUS wma_process_tx_power_limits(WMA_HANDLE handle, - tSirTxPowerLimit *ptxlim); + struct tx_power_limit *ptxlim); void wma_update_noa(struct beacon_info *beacon, struct p2p_sub_element_noa *noa_ie); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 464d2ebc1311..26a590edfc6c 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -8511,8 +8511,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg) qdf_mem_free(msg->bodyptr); break; case WMA_TX_POWER_LIMIT: - wma_process_tx_power_limits(wma_handle, - (tSirTxPowerLimit *) msg->bodyptr); + wma_process_tx_power_limits(wma_handle, msg->bodyptr); qdf_mem_free(msg->bodyptr); break; case WMA_SEND_ADDBA_REQ: diff --git a/core/wma/src/wma_power.c b/core/wma/src/wma_power.c index 551eacfdbe2b..abc398a81680 100644 --- a/core/wma/src/wma_power.c +++ b/core/wma/src/wma_power.c @@ -1203,7 +1203,7 @@ int wma_pdev_temperature_evt_handler(void *handle, uint8_t *event, * Return: QDF_STATUS_SUCCESS for success or error code. */ QDF_STATUS wma_process_tx_power_limits(WMA_HANDLE handle, - tSirTxPowerLimit *ptxlim) + struct tx_power_limit *ptxlim) { tp_wma_handle wma = (tp_wma_handle) handle; int32_t ret = 0;