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
Цей коміт міститься в:
Santosh Anbu
2018-11-30 15:26:30 +05:30
зафіксовано nshrivas
джерело 965035c642
коміт 6e2fed8f5f
4 змінених файлів з 31 додано та 1 видалено

Переглянути файл

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