diff --git a/core/utils/epping/inc/epping_internal.h b/core/utils/epping/inc/epping_internal.h index 664076d7a523..3ae69fbfe09f 100644 --- a/core/utils/epping/inc/epping_internal.h +++ b/core/utils/epping/inc/epping_internal.h @@ -111,7 +111,7 @@ typedef struct epping_context { void *p_cds_context; /* CDS context */ struct device *parent_dev; /* Pointer to the parent device */ epping_ctx_state_t e_ctx_state; - int wow_nack; + bool wow_nack; void *epping_adapter; HTC_HANDLE HTCHandle; HTC_ENDPOINT_ID EppingEndpoint[EPPING_MAX_NUM_EPIDS]; diff --git a/core/utils/epping/src/epping_main.c b/core/utils/epping/src/epping_main.c index 6f9380f02750..44ddc824b9ca 100644 --- a/core/utils/epping/src/epping_main.c +++ b/core/utils/epping/src/epping_main.c @@ -151,10 +151,13 @@ void epping_close(void) qdf_mem_free(to_free); } -static void epping_target_suspend_acknowledge(void *context) +/** + * epping_target_suspend_acknowledge() - process wow ack/nack from fw + * @context: HTC_INIT_INFO->context + * @wow_nack: true when wow is rejected + */ +static void epping_target_suspend_acknowledge(void *context, bool wow_nack) { - int wow_nack = *((int *)context); - if (NULL == g_epping_ctx) { EPPING_LOG(QDF_TRACE_LEVEL_FATAL, "%s: epping_ctx is NULL", __func__); diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index 4bf40d266470..039202571f2a 100644 --- a/core/wma/inc/wma_api.h +++ b/core/wma/inc/wma_api.h @@ -123,7 +123,7 @@ int wma_runtime_suspend(void); int wma_runtime_resume(void); int wma_bus_suspend(void); QDF_STATUS wma_suspend_target(WMA_HANDLE handle, int disable_target_intr); -void wma_target_suspend_acknowledge(void *context); +void wma_target_suspend_acknowledge(void *context, bool wow_nack); int wma_bus_resume(void); QDF_STATUS wma_resume_target(WMA_HANDLE handle); QDF_STATUS wma_disable_wow_in_fw(WMA_HANDLE handle); diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index d23e1cbd2192..b8727ca1d3e7 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -3246,7 +3246,7 @@ QDF_STATUS wma_enable_wow_in_fw(WMA_HANDLE handle) #endif /* CONFIG_CNSS */ qdf_event_reset(&wma->target_suspend); - wma->wow_nack = 0; + wma->wow_nack = false; host_credits = wmi_get_host_credits(wma->wmi_handle); wmi_pending_cmds = wmi_get_pending_cmds(wma->wmi_handle); @@ -5925,14 +5925,14 @@ QDF_STATUS wma_suspend_target(WMA_HANDLE handle, int disable_target_intr) /** * wma_target_suspend_acknowledge() - update target susspend status - * @context: wma context + * @context: HTC_INIT_INFO->context + * @wow_nack: true when wow is rejected * * Return: none */ -void wma_target_suspend_acknowledge(void *context) +void wma_target_suspend_acknowledge(void *context, bool wow_nack) { tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); - int wow_nack = *((int *)context); if (NULL == wma) { WMA_LOGE("%s: wma is NULL", __func__);