Bladeren bron

qcacld-3.0: IBSS: Handle IBSS mode in stop adapter properly

qcacld-2.0 to qcacld-3.0 propagation
In Stop Adapter IBSS mode is not handled properly and
no DEL BSS is sent for the connected IBSS before DEL SELF STA.
This may lead to crash in FW.

As part of fix handle the IBSS mode and send DEL BSS if IBSS is
connected.

Change-Id: Ice1304aced1a158c7b589a95337412cda0183a04
CRs-Fixed: 908990
Abhishek Singh 9 jaren geleden
bovenliggende
commit
1e94d7a2cc
1 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 2 3
      core/hdd/src/wlan_hdd_main.c

+ 2 - 3
core/hdd/src/wlan_hdd_main.c

@@ -2713,6 +2713,7 @@ CDF_STATUS hdd_stop_adapter(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter,
 	switch (adapter->device_mode) {
 	case WLAN_HDD_INFRA_STATION:
 	case WLAN_HDD_P2P_CLIENT:
+	case WLAN_HDD_IBSS:
 	case WLAN_HDD_P2P_DEVICE:
 		if (hdd_conn_is_connected(
 				WLAN_HDD_GET_STATION_CTX_PTR(adapter)) ||
@@ -2756,9 +2757,7 @@ CDF_STATUS hdd_stop_adapter(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter,
 			hdd_abort_mac_scan(hdd_ctx, adapter->sessionId,
 					   eCSR_SCAN_ABORT_DEFAULT);
 		}
-
-		if (adapter->device_mode != WLAN_HDD_INFRA_STATION)
-			wlan_hdd_cleanup_remain_on_channel_ctx(adapter);
+		wlan_hdd_cleanup_remain_on_channel_ctx(adapter);
 
 #ifdef WLAN_OPEN_SOURCE
 		cancel_work_sync(&adapter->ipv4NotifierWorkQueue);