Răsfoiți Sursa

qcacld-3.0: Remove hdd context validation in wlan_hdd_disconnect

If driver is removing while STA is in connected state, disconnect
is not happening because hdd context validation will not be success
while driver unload is in progress.

To address this issue, remove validation of hdd context in
wlan_hdd_disconnect to allow disconnection while driver unload
is in progress.

Change-Id: Ia10aa9237a30490f3085458ab38ce27c4eeebaf0
CRs-Fixed: 2284198
Dundi Raviteja 7 ani în urmă
părinte
comite
cc95c56e15
1 a modificat fișierele cu 2 adăugiri și 5 ștergeri
  1. 2 5
      core/hdd/src/wlan_hdd_cfg80211.c

+ 2 - 5
core/hdd/src/wlan_hdd_cfg80211.c

@@ -19619,7 +19619,8 @@ static int wlan_hdd_cfg80211_connect(struct wiphy *wiphy,
 
 
 int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason)
 int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason)
 {
 {
-	int status, result = 0;
+	QDF_STATUS status;
+	int result = 0;
 	unsigned long rc;
 	unsigned long rc;
 	struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
 	struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
 	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
 	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
@@ -19629,10 +19630,6 @@ int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason)
 
 
 	hdd_enter();
 	hdd_enter();
 
 
-	status = wlan_hdd_validate_context(hdd_ctx);
-
-	if (0 != status)
-		return status;
 	mac_handle = hdd_ctx->mac_handle;
 	mac_handle = hdd_ctx->mac_handle;
 	if (adapter->device_mode ==  QDF_STA_MODE) {
 	if (adapter->device_mode ==  QDF_STA_MODE) {
 		hdd_debug("Stop firmware roaming");
 		hdd_debug("Stop firmware roaming");