mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacmn: Add psoc id value to debug prints vdev mlme timer APIs
Add psoc id value for the debug prints of, error handling vdev mlme timer APIs Change-Id: I7d225114e91ff4b6f898450ca3ef7d2e21be631a CRs-Fixed: 2427905
This commit is contained in:
parent
457b26718a
commit
09b50e625d
3 changed files with 32 additions and 4 deletions
|
|
@ -105,10 +105,12 @@ void target_if_vdev_mgr_rsp_timer_mgmt_cb(void *arg)
|
|||
}
|
||||
|
||||
if (target_if_vdev_mgr_is_panic_on_bug()) {
|
||||
QDF_DEBUG_PANIC("VDEV_%d: Panic on bug enabled, rsp status:%d",
|
||||
QDF_DEBUG_PANIC("PSOC_%d VDEV_%d: Panic on bug, rsp status:%d",
|
||||
wlan_psoc_get_id(psoc),
|
||||
vdev_id, vdev_rsp->rsp_status);
|
||||
} else {
|
||||
mlme_err("VDEV_%d: Trigger Self recovery, rsp status%d",
|
||||
mlme_err("PSOC_%d VDEV_%d: Trigger Self recovery, rsp status%d",
|
||||
wlan_psoc_get_id(psoc),
|
||||
vdev_id, vdev_rsp->rsp_status);
|
||||
wmi_handle = target_if_vdev_mgr_wmi_handle_get(vdev);
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,13 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
|
|||
{
|
||||
uint8_t vdev_id;
|
||||
uint8_t rsp_pos;
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
psoc = wlan_vdev_get_psoc(vdev);
|
||||
if (!psoc) {
|
||||
mlme_err("PSOC is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
vdev_id = wlan_vdev_get_id(vdev);
|
||||
/* it is expected to be only one command with FW at a time */
|
||||
|
|
@ -100,7 +107,8 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
|
|||
if (rsp_pos != set_bit) {
|
||||
if (qdf_atomic_test_bit(rsp_pos,
|
||||
&vdev_rsp->rsp_status)) {
|
||||
mlme_err("VDEV_%d: Response bit is set %d",
|
||||
mlme_err("PSOC_%d VDEV_%d: Response bit is set %d",
|
||||
wlan_psoc_get_id(psoc),
|
||||
vdev_id, vdev_rsp->rsp_status);
|
||||
QDF_ASSERT(0);
|
||||
}
|
||||
|
|
@ -108,7 +116,8 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
|
|||
}
|
||||
|
||||
if (qdf_atomic_test_and_set_bit(set_bit, &vdev_rsp->rsp_status)) {
|
||||
mlme_err("VDEV_%d: Response bit is set %d",
|
||||
mlme_err("PSOC_%d VDEV_%d: Response bit is set %d",
|
||||
wlan_psoc_get_id(psoc),
|
||||
vdev_id, vdev_rsp->rsp_status);
|
||||
QDF_ASSERT(0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1532,4 +1532,21 @@ wlan_psoc_get_lmac_if_txops(struct wlan_objmgr_psoc *psoc)
|
|||
{
|
||||
return &((psoc->soc_cb.tx_ops));
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_psoc_get_id() - get psoc id
|
||||
* @psoc: PSOC object
|
||||
*
|
||||
* API to get psoc id
|
||||
*
|
||||
* Return: @psoc_id: psoc id
|
||||
*/
|
||||
static inline uint8_t wlan_psoc_get_id(
|
||||
struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
if (!psoc)
|
||||
return (uint8_t)-1;
|
||||
|
||||
return psoc->soc_objmgr.psoc_id;
|
||||
}
|
||||
#endif /* _WLAN_OBJMGR_PSOC_OBJ_H_*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue