wlan: Dump HAL status in error scenario
Currently host converts all hal status into wdi status
using WDI_HAL_2_WDI_STATUS. But host convert some of
hal status to wdi status rest all hal status it's
mapped to default WDI_STATUS_DEV_INTERNAL_FAILURE.
Because of the this, Host never know actual firmware
hal status error.
As a part of fix, Dump HAL status in WDI_HAL_2_WDI_STATUS
in error cases.
Change-Id: Ie2f00403fae43ee20020fa273ead5620a201e7c7
CRs-Fixed: 2075882
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index 70a7204..4aed25d 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -24842,6 +24842,8 @@
/*The rest of the HAL error codes must be kept hidden from the UMAC as
they refer to specific internal modules of our device*/
default:
+ WPAL_TRACE(eWLAN_MODULE_DAL_CTRL, eWLAN_PAL_TRACE_LEVEL_ERROR,
+ "Fwr halStatus:%d", halStatus);
return WDI_STATUS_DEV_INTERNAL_FAILURE;
}