From 0586014fbf4aedbf2007740f50c1542ab4540501 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Wed, 26 Jul 2017 18:45:27 +0530 Subject: [PATCH] qcacld-3.0: On PNO progress, issue PNO STOP during STA session close In STA+AP concurrency case, driver fails to receive PNO STOP indication from the upperlayer and thereby driver fails to send same indication to FW, leading to a FW crash. To mitigate this issue, during STA session close, issue PNO stop indication to FW, if PNO is in progress. Change-Id: If30e631fc5e8151cd5ecc66ff1d48627123a0a1e CRs-Fixed: 2059793 --- core/hdd/src/wlan_hdd_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 8f12947de34f..d2839a342a74 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4173,6 +4173,9 @@ QDF_STATUS hdd_stop_adapter(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter, #endif #endif + if (adapter->device_mode == QDF_STA_MODE) + wlan_cfg80211_sched_scan_stop(hdd_ctx->hdd_pdev, + adapter->dev); /* * It is possible that the caller of this function does not * wish to close the session