From 1e94d7a2cc362e64b048a3783c121cd80f94afb5 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Mon, 30 Nov 2015 17:26:54 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index f134d8d71928..3edc5ad318c5 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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);