diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 0e770d3311fd..c01dd8f3821e 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -262,6 +262,9 @@ #define WLAN_HDD_QOS_MAP_CONFIGURE 4 #define HDD_SAP_WAKE_LOCK_DURATION 10000 /* in msecs */ +/* SAP client disconnect wake lock duration in milli seconds */ +#define HDD_SAP_CLIENT_DISCONNECT_WAKE_LOCK_DURATION (1000) + #if defined(CONFIG_HL_SUPPORT) #define HDD_MOD_EXIT_SSR_MAX_RETRIES 200 #else diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 227747eb3a8b..1da56f8123ea 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -1825,6 +1825,11 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, wlan_hdd_auto_shutdown_enable(pHddCtx, true); #endif + cds_host_diag_log_work(&pHddCtx->sap_wake_lock, + HDD_SAP_WAKE_LOCK_DURATION, + WIFI_POWER_EVENT_WAKELOCK_SAP); + qdf_wake_lock_timeout_acquire(&pHddCtx->sap_wake_lock, + HDD_SAP_CLIENT_DISCONNECT_WAKE_LOCK_DURATION); cfg80211_del_sta(dev, (const u8 *)&pSapEvent->sapevt. sapStationDisassocCompleteEvent.staMac.