qcacmn: Add scheduler mq handler for mlme
Add mlme message queue handler as the call back for non scan commands getting activated in the scheduler context. Add cmd already exists enum to be returned if the command already exists in the serialization queue. Change-Id: I24fe453ffddbd4341459874458f11688adebc740 CRs-Fixed: 2377219
This commit is contained in:
@@ -472,6 +472,25 @@ QDF_STATUS scheduler_timer_q_mq_handler(struct scheduler_msg *msg)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS scheduler_mlme_mq_handler(struct scheduler_msg *msg)
|
||||
{
|
||||
scheduler_msg_process_fn_t mlme_msg_handler;
|
||||
|
||||
QDF_BUG(msg);
|
||||
if (!msg)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
mlme_msg_handler = msg->callback;
|
||||
|
||||
QDF_BUG(mlme_msg_handler);
|
||||
if (!mlme_msg_handler)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
mlme_msg_handler(msg);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS scheduler_scan_mq_handler(struct scheduler_msg *msg)
|
||||
{
|
||||
QDF_STATUS (*scan_q_msg_handler)(struct scheduler_msg *);
|
||||
|
Reference in New Issue
Block a user