From 64a2e6f89289068925cced1e13e32919f46cd593 Mon Sep 17 00:00:00 2001 From: Will Huang Date: Sat, 25 Jan 2020 15:40:13 +0800 Subject: [PATCH] qcacld-3.0: Add idle shutdown for hostapd mode stop Because FW don't support idle pdev suspend, and when all interface down host will not send wow enable command because wakeup is not expected. So the idle shutdown precedure is already there to prevent system go to idle pdev suspend state, but it only exist for station mode now, apply it to hostapd mode as well. Change-Id: I1b11b5bd038ea9ad23835f142e443ea11e90f55b CRs-Fixed: 2624453 --- core/hdd/src/wlan_hdd_hostapd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 2f2533ace6d8..d0d6e99ef3ac 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -534,6 +534,9 @@ static int __hdd_hostapd_stop(struct net_device *dev) WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); + if (!hdd_is_any_interface_open(hdd_ctx)) + hdd_psoc_idle_timer_start(hdd_ctx); + hdd_exit(); return 0; }