Kaynağa Gözat

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
Yue Ma 9 yıl önce
ebeveyn
işleme
c5535fcf15
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      core/hdd/src/wlan_hdd_stats.c

+ 2 - 1
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