mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacld-3.0: Improve tx status logging for mgmt packets
Change status logging in mgmt tx completion to string format. Change-Id: I84c99e3c928a8a5c17048f20e1d9b3e990b911ad CRs-Fixed: 2113615
This commit is contained in:
parent
1b91657a1d
commit
684e8b1eb0
2 changed files with 23 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue