mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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
This commit is contained in:
parent
ac2be14ac2
commit
1e94d7a2cc
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue