wlan: Crash device if vos_stop or vos_start fails
If vos_start()/vos_stop() fails, crash the device by invoking
BUG_ON(). So that driver status will be known to debug why these
functions failed to initialize/uninitialize during driver
load/unload.
Change-Id: I37d941a8e4ebdff2a5f8c1f8df617d608cf50398
CRs-Fixed: 901579
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 9f489d0..c2739c9 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -8816,6 +8816,7 @@
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_FATAL,
"%s: Failed to stop VOSS",__func__);
VOS_ASSERT( VOS_IS_STATUS_SUCCESS( vosStatus ) );
+ VOS_BUG(0);
}
//This requires pMac access, Call this before vos_close().
@@ -9972,6 +9973,7 @@
if ( !VOS_IS_STATUS_SUCCESS( status ) )
{
hddLog(VOS_TRACE_LEVEL_FATAL,"%s: vos_start failed",__func__);
+ VOS_BUG(0);
goto err_vosclose;
}