qcacld-3.0: Stop HIF service before HTC cleanup

HIFStart is called from HTCWaitTarget in the vos_open function. If
vos_open fails later, the HIFStop is not called to cleanup what is done
in the HIFStart. This change fixes this issue.

qcacld-2.0 to qcacld-3.0 propagation

Git-commit:98808985fb6037c6f33af396aae38224f91c8b4d

Change-Id: Id30f41d953e4582db57a98fff14e3f68447239f1
CRs-Fixed: 831608
This commit is contained in:
Karthick S 2015-10-14 17:56:55 +05:30 • committed by Satish Singh
commit cbb555aa3f

View file

@ -277,6 +277,7 @@ void htc_destroy(HTC_HANDLE HTCHandle)
HTC_TARGET *target = GET_HTC_TARGET_FROM_HANDLE(HTCHandle);
AR_DEBUG_PRINTF(ATH_DEBUG_TRC,
("+htc_destroy .. Destroying :0x%p\n", target));
hif_stop(htc_get_hif_device(HTCHandle));
if (target)
htc_cleanup(target);
AR_DEBUG_PRINTF(ATH_DEBUG_TRC, ("-htc_destroy\n"));