From 8b4c92e58df7160d3359efb2bc92aa94af1547aa Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Wed, 21 Oct 2015 17:24:09 -0700 Subject: qcacld: Do not update WLAN status to LPASS when disconnect during unload 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_assoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c index 8a8cacabab11..7396fdc77d78 100644 --- a/CORE/HDD/src/wlan_hdd_assoc.c +++ b/CORE/HDD/src/wlan_hdd_assoc.c @@ -774,7 +774,8 @@ static void hdd_SendAssociationEvent(struct net_device *dev,tCsrRoamInfo *pCsrRo #ifdef WLAN_FEATURE_LPSS pAdapter->rssi_send = VOS_FALSE; - wlan_hdd_send_status_pkg(pAdapter, pHddStaCtx, 1, 0); + if (pHddCtx->isUnloadInProgress != TRUE) + wlan_hdd_send_status_pkg(pAdapter, pHddStaCtx, 1, 0); #endif #ifdef MSM_PLATFORM -- cgit v1.2.3