qcacmn: 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:

committed by
Gerrit - the friendly Code Review server

parent
e52902c4a5
commit
61fad9f81c
@@ -54,7 +54,7 @@ typedef void (*HTC_TARGET_FAILURE)(void *Instance, QDF_STATUS Status);
|
|||||||
typedef struct _HTC_INIT_INFO {
|
typedef struct _HTC_INIT_INFO {
|
||||||
void *pContext; /* context for target notifications */
|
void *pContext; /* context for target notifications */
|
||||||
void (*TargetFailure)(void *Instance, QDF_STATUS Status);
|
void (*TargetFailure)(void *Instance, QDF_STATUS Status);
|
||||||
void (*TargetSendSuspendComplete)(void *ctx);
|
void (*TargetSendSuspendComplete)(void *ctx, bool is_nack);
|
||||||
} HTC_INIT_INFO;
|
} HTC_INIT_INFO;
|
||||||
|
|
||||||
/* Struct for HTC layer packet stats*/
|
/* Struct for HTC layer packet stats*/
|
||||||
|
@@ -398,7 +398,7 @@ QDF_STATUS htc_rx_completion_handler(void *Context, qdf_nbuf_t netbuf,
|
|||||||
if (htc_ep_id == ENDPOINT_0) {
|
if (htc_ep_id == ENDPOINT_0) {
|
||||||
uint16_t message_id;
|
uint16_t message_id;
|
||||||
HTC_UNKNOWN_MSG *htc_msg;
|
HTC_UNKNOWN_MSG *htc_msg;
|
||||||
int wow_nack = 0;
|
bool wow_nack;
|
||||||
|
|
||||||
/* remove HTC header */
|
/* remove HTC header */
|
||||||
qdf_nbuf_pull_head(netbuf, HTC_HDR_LENGTH);
|
qdf_nbuf_pull_head(netbuf, HTC_HDR_LENGTH);
|
||||||
@@ -437,19 +437,20 @@ QDF_STATUS htc_rx_completion_handler(void *Context, qdf_nbuf_t netbuf,
|
|||||||
qdf_event_set(&target->ctrl_response_valid);
|
qdf_event_set(&target->ctrl_response_valid);
|
||||||
break;
|
break;
|
||||||
case HTC_MSG_SEND_SUSPEND_COMPLETE:
|
case HTC_MSG_SEND_SUSPEND_COMPLETE:
|
||||||
wow_nack = 0;
|
wow_nack = false;
|
||||||
LOCK_HTC_CREDIT(target);
|
LOCK_HTC_CREDIT(target);
|
||||||
htc_credit_record(HTC_SUSPEND_ACK,
|
htc_credit_record(HTC_SUSPEND_ACK,
|
||||||
pEndpoint->TxCredits,
|
pEndpoint->TxCredits,
|
||||||
HTC_PACKET_QUEUE_DEPTH(
|
HTC_PACKET_QUEUE_DEPTH(
|
||||||
&pEndpoint->TxQueue));
|
&pEndpoint->TxQueue));
|
||||||
UNLOCK_HTC_CREDIT(target);
|
UNLOCK_HTC_CREDIT(target);
|
||||||
target->HTCInitInfo.
|
target->HTCInitInfo.TargetSendSuspendComplete(
|
||||||
TargetSendSuspendComplete((void *)
|
target->HTCInitInfo.pContext,
|
||||||
&wow_nack);
|
wow_nack);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case HTC_MSG_NACK_SUSPEND:
|
case HTC_MSG_NACK_SUSPEND:
|
||||||
wow_nack = 1;
|
wow_nack = true;
|
||||||
LOCK_HTC_CREDIT(target);
|
LOCK_HTC_CREDIT(target);
|
||||||
htc_credit_record(HTC_SUSPEND_ACK,
|
htc_credit_record(HTC_SUSPEND_ACK,
|
||||||
pEndpoint->TxCredits,
|
pEndpoint->TxCredits,
|
||||||
@@ -457,9 +458,9 @@ QDF_STATUS htc_rx_completion_handler(void *Context, qdf_nbuf_t netbuf,
|
|||||||
&pEndpoint->TxQueue));
|
&pEndpoint->TxQueue));
|
||||||
UNLOCK_HTC_CREDIT(target);
|
UNLOCK_HTC_CREDIT(target);
|
||||||
|
|
||||||
target->HTCInitInfo.
|
target->HTCInitInfo.TargetSendSuspendComplete(
|
||||||
TargetSendSuspendComplete((void *)
|
target->HTCInitInfo.pContext,
|
||||||
&wow_nack);
|
wow_nack);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user