diff options
| author | Yue Ma <yuem@qca.qualcomm.com> | 2015-10-21 17:24:09 -0700 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-10-23 12:17:20 +0530 |
| commit | 8b4c92e58df7160d3359efb2bc92aa94af1547aa (patch) | |
| tree | a8684ff2abdbde2b2eed7a075971cba26e982420 | |
| parent | 0c4a7e56edfd36fceda75507c6b7d5bf09a8f003 (diff) | |
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
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_assoc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
