qcacmn: Add support to improve coex logging

Add support to get the various Coex data from the debugfs.
This commit adds the support to get the various coex data:
            * COEX STATE
            * COEX DPWB STATE
            * COEX TDM STATE
            * COEX IDRX STATE
            * COEX ANTENNA SHARING STATE

The specific state information can be read via the debugfs.

Example to read the COEX STATE logging:
            sm6150:/ # echo "1" > /d/wlan/mws_coex_status_info
            sm6150:/ # cat /d/wlan/mws_coex_status_info
                    Reading for command MWS_COEX_STATE.
                    vdev_id = 0
                    coex_scheme_bitmap =  0
                    active_conflict_count = 0
                    potential_conflict_count = 0
                    chavd_group0_bitmap = 0
                    chavd_group1_bitmap = 0
                    chavd_group2_bitmap = 0
                    chavd_group3_bitmap = 0

Change-Id: I92272ad7edf44df22730ac0fa992d876840ba632
CRs-Fixed: 2413955
This commit is contained in:
Arun Kumar Khandavalli
2019-03-10 16:32:21 +05:30
committed by nshrivas
parent 65fad66752
commit ac6e126adf
5 changed files with 227 additions and 2 deletions

View File

@@ -4671,3 +4671,15 @@ wmi_extract_cfr_peer_tx_event_param(void *wmi_hdl, void *evt_buf,
return QDF_STATUS_E_FAILURE;
}
#endif /* WLAN_CFR_ENABLE */
QDF_STATUS wmi_unified_send_mws_coex_req_cmd(struct wmi_unified *wmi_handle,
uint32_t vdev_id,
uint32_t cmd_id)
{
if (wmi_handle->ops->send_mws_coex_status_req_cmd)
return wmi_handle->ops->send_mws_coex_status_req_cmd(wmi_handle,
vdev_id, cmd_id);
return QDF_STATUS_E_FAILURE;
}