qcacmn: Add handlers for scan queue in scheduler core

Add scheduler message handler function for QDF_MODULE_ID_SCAN queue.

Also post scan beacon/probe frames and scan events to SCAN queue instead
of TARGET_IF queue.

Change-Id: I94e3ea2f0eb5c9592f5cfcd91738778fa65ba815
CRs-Fixed: 2214554
This commit is contained in:
Vignesh Viswanathan 2018-04-04 17:41:55 +05:30 • committed by nshrivas
commit 6ecd284e5a
4 changed files with 35 additions and 30 deletions

View file

@ -1,9 +1,6 @@
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
@ -19,12 +16,6 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* This file was originally distributed by Qualcomm Atheros, Inc.
* under proprietary terms before Copyright ownership was assigned
* to the Linux Foundation.
*/
#include <scheduler_api.h>
#include <scheduler_core.h>
#include <qdf_atomic.h>
@ -531,6 +522,27 @@ QDF_STATUS scheduler_timer_q_mq_handler(struct scheduler_msg *msg)
}
}
QDF_STATUS scheduler_scan_mq_handler(struct scheduler_msg *msg)
{
QDF_STATUS (*scan_q_msg_handler)(struct scheduler_msg *);
if (NULL == msg) {
sched_err("Msg is NULL");
return QDF_STATUS_E_FAILURE;
}
scan_q_msg_handler = msg->callback;
if (NULL == scan_q_msg_handler) {
sched_err("Msg callback is NULL");
QDF_ASSERT(0);
return QDF_STATUS_E_FAILURE;
}
scan_q_msg_handler(msg);
return QDF_STATUS_SUCCESS;
}
QDF_STATUS scheduler_register_wma_legacy_handler(scheduler_msg_process_fn_t
wma_callback)
{