From e3eaebe3391aca46db4fd4c16f34a0fc8459d8c2 Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Tue, 27 Oct 2015 12:42:40 -0700 Subject: [PATCH] qcacld-3.0: Do not update WLAN status to LPASS when disconnect during unload qcacld-2.0 to qcacld-3.0 propagation Host driver updates WLAN status to LPASS with connected false and WLAN on when disconnection happens. Host driver also updates WLAN status right after driver unload is triggered with connected false and WLAN off. There is a scenario that disconnection callback comes during driver unloading which causes LPASS misbehavior. Fix this by only updating disconnection status to LAPSS when driver is not unloading. Change-Id: Ie72ba094283a64c06e8c74523314d6de92a0f08b CRs-fixed: 928365 --- core/hdd/src/wlan_hdd_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index a08f133213a2..4d3b35c3fb21 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -1928,7 +1928,8 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, #ifdef WLAN_FEATURE_LPSS if (!pAdapter->rssi_send) { pAdapter->rssi_send = true; - wlan_hdd_send_status_pkg(pAdapter, pHddStaCtx, 1, 1); + if (pHddCtx->isUnloadInProgress != true) + wlan_hdd_send_status_pkg(pAdapter, pHddStaCtx, 1, 1); } #endif