qcacld-3.0: Add wow_nack to TargetSendSuspendComplete api

TargetSendSuspendComplete should take the HTCInitInfo
context as an argument.  The wow_nack should be its
own argument.

Change-Id: Ib13385cf0a04730d066ffcd53c1f669c7a5ced60
CRs-Fixed: 1003793
This commit is contained in:
Houston Hoffman
2016-04-14 17:02:51 -07:00
committed by Gerrit - the friendly Code Review server
parent 371d4a9340
commit a769ed3ba1
4 changed files with 12 additions and 9 deletions

View File

@@ -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];

View File

@@ -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__);

View File

@@ -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);

View File

@@ -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__);