summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Chiu <wchiu@qca.qualcomm.com>2014-05-23 12:58:35 +0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-05-27 17:05:04 -0700
commit2f439affff1721dbcdca0a16cc8b6f98b9dddb26 (patch)
tree2469c4e7295e4f2329a601dc6f1efcc346cd25c4
parentc68a850f8b3e6c141d4ef1735ff8e4c9d749cb52 (diff)
qcacld: UI still show interface when unplug Card in U3 mode
The flow in vos_close is not correct and will cause htt tx description to be freed after ol_txrx_pdev_detach which called by WLANTL_Close. Moving HTCStop before WLANTL_Close to avoid such situation. Change-Id: Iaac737850a0fbedd339a8ad76f8a82b4de6abc34 CRs-fixed: 669295
-rw-r--r--CORE/VOSS/src/vos_api.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/CORE/VOSS/src/vos_api.c b/CORE/VOSS/src/vos_api.c
index c0c6ebdc6fea..1414c4ba9477 100644
--- a/CORE/VOSS/src/vos_api.c
+++ b/CORE/VOSS/src/vos_api.c
@@ -1089,6 +1089,14 @@ VOS_STATUS vos_close( v_CONTEXT_t vosContext )
}
#endif // WLAN_BTAMP_FEATURE
+#ifdef QCA_WIFI_2_0
+ if (gpVosContext->htc_ctx)
+ {
+ HTCStop(gpVosContext->htc_ctx);
+ HTCDestroy(gpVosContext->htc_ctx);
+ gpVosContext->htc_ctx = NULL;
+ }
+#endif
vosStatus = WLANTL_Close(vosContext);
if (!VOS_IS_STATUS_SUCCESS(vosStatus))
@@ -1161,13 +1169,6 @@ VOS_STATUS vos_close( v_CONTEXT_t vosContext )
}
#ifdef QCA_WIFI_2_0
- if (gpVosContext->htc_ctx)
- {
- HTCStop(gpVosContext->htc_ctx);
- HTCDestroy(gpVosContext->htc_ctx);
- gpVosContext->htc_ctx = NULL;
- }
-
vosStatus = wma_wmi_service_close( vosContext );
if (!VOS_IS_STATUS_SUCCESS(vosStatus))
{