diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c index c86be8a5294f..6156fa10fb5e 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -2115,7 +2115,8 @@ static QDF_STATUS lim_auth_tx_complete_cnf(void *context, uint16_t auth_ack_status; uint16_t reason_code; - pe_debug("tx_complete= %d", tx_complete); + pe_debug("tx_complete = %d %s", tx_complete, + (tx_complete ? "success":"fail")); if (tx_complete) { mac_ctx->auth_ack_status = LIM_AUTH_ACK_RCD_SUCCESS; auth_ack_status = ACKED; diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 03439fb3c49a..61f084854776 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -2744,6 +2744,25 @@ void wma_beacon_miss_handler(tp_wma_handle wma, uint32_t vdev_id, int32_t rssi) WMA_TGT_NOISE_FLOOR_DBM); } +/** + * wma_get_status_str() - get string of tx status from firmware + * @status: tx status + * + * Return: converted string of tx status + */ +static const char *wma_get_status_str(uint32_t status) +{ + switch (status) { + default: + return "unknown"; + CASE_RETURN_STRING(WMI_MGMT_TX_COMP_TYPE_COMPLETE_OK); + CASE_RETURN_STRING(WMI_MGMT_TX_COMP_TYPE_DISCARD); + CASE_RETURN_STRING(WMI_MGMT_TX_COMP_TYPE_INSPECT); + CASE_RETURN_STRING(WMI_MGMT_TX_COMP_TYPE_COMPLETE_NO_ACK); + CASE_RETURN_STRING(WMI_MGMT_TX_COMP_TYPE_MAX); + } +} + /** * wma_process_mgmt_tx_completion() - process mgmt completion * @wma_handle: wma handle @@ -2766,7 +2785,8 @@ static int wma_process_mgmt_tx_completion(tp_wma_handle wma_handle, return -EINVAL; } - WMA_LOGD("%s: status: %d wmi_desc_id: %d", __func__, status, desc_id); + WMA_LOGD("%s: status: %s wmi_desc_id: %d", __func__, + wma_get_status_str(status), desc_id); psoc = wma_handle->psoc; if (psoc == NULL) {