From 03e71a88f3b77ecf5daa45526424a423b235bca8 Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Mon, 20 Apr 2020 18:35:27 +0530 Subject: [PATCH] qcacld-3.0: Update check for disabling auto ps timer Currently auto ps timer is disabled when device mode is not monitor mode. This is causing issue when device mode is FTM when ps timer won't be started. To resolve this, add check for FTM mode also before disabling auto ps timer. Change-Id: I7cf493f10676e170fcb7e50e343bb0d20de4d89c CRs-Fixed: 2667942 --- core/hdd/src/wlan_hdd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 07a5385e58e3..530dc9416b3f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4075,7 +4075,8 @@ static int __hdd_stop(struct net_device *dev) mac_handle = hdd_ctx->mac_handle; - if (!wlan_hdd_is_session_type_monitor(adapter->device_mode)) { + if (!wlan_hdd_is_session_type_monitor(adapter->device_mode) && + adapter->device_mode != QDF_FTM_MODE) { hdd_debug("Disabling Auto Power save timer"); sme_ps_disable_auto_ps_timer( mac_handle,