qcacld-3.0: Check return value during SAP global initialization

Check the return value during SAP global initialization to
gracefully clean up the re-initialization in case of any error.

Change-Id: I216146b4501606a536dffb5a859b43dd2d6989ff
CRs-Fixed: 1031855
This commit is contained in:
Manishekar Chandrasekaran 2016-06-24 02:31:55 +05:30 • committed by Gerrit - the friendly Code Review server
commit 2e71e93707

View file

@ -1666,7 +1666,9 @@ QDF_STATUS hdd_wlan_re_init(void *hif_sc)
pHddCtx->target_hw_version,
pHddCtx->target_hw_name);
#endif
wlansap_global_init();
qdf_status = wlansap_global_init();
if (QDF_IS_STATUS_ERROR(qdf_status))
goto err_cds_disable;
hddLog(LOGE,
"%s: WLAN host driver reinitiation completed!", __func__);