qcacld-3.0: Add src, and dst id support in SYS/CFG

In the scheduler_post_message, src_id is now added to
know the source module of the msg. the present scheduler
doesn't know about the same which is scheduler_post_msg

Replace the scheduler_post_msg with scheduler_post_message

Change-Id: I869e14830b2f57b951033ada5957594fac7bc4c2
CRs-Fixed: 2305994
This commit is contained in:
gaurank kathpalia
2018-08-28 20:57:15 +05:30
committed by nshrivas
parent fb10e8f2dd
commit d9ee9f2481
3 changed files with 22 additions and 8 deletions

View File

@@ -427,7 +427,9 @@ QDF_STATUS ocb_vdev_start(struct ocb_pdev_obj *ocb_obj)
msg.bodyptr = ocb_obj; msg.bodyptr = ocb_obj;
msg.callback = ocb_process_start_vdev_msg; msg.callback = ocb_process_start_vdev_msg;
msg.flush_callback = ocb_flush_start_msg; msg.flush_callback = ocb_flush_start_msg;
status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); status = scheduler_post_message(QDF_MODULE_ID_OCB,
QDF_MODULE_ID_OCB,
QDF_MODULE_ID_TARGET_IF, &msg);
if (QDF_IS_STATUS_ERROR(status)) if (QDF_IS_STATUS_ERROR(status))
ocb_err("Failed to post vdev start message"); ocb_err("Failed to post vdev start message");

View File

@@ -85,7 +85,9 @@ tgt_ocb_channel_config_status(struct wlan_objmgr_psoc *psoc,
msg.bodyptr = event; msg.bodyptr = event;
msg.callback = ocb_process_evt; msg.callback = ocb_process_evt;
msg.flush_callback = wlan_ocb_flush_callback; msg.flush_callback = wlan_ocb_flush_callback;
qdf_status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); qdf_status = scheduler_post_message(QDF_MODULE_ID_OCB,
QDF_MODULE_ID_OCB,
QDF_MODULE_ID_TARGET_IF, &msg);
if (QDF_IS_STATUS_SUCCESS(qdf_status)) if (QDF_IS_STATUS_SUCCESS(qdf_status))
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
@@ -141,7 +143,9 @@ tgt_ocb_get_tsf_timer(struct wlan_objmgr_psoc *psoc,
msg.callback = ocb_process_evt; msg.callback = ocb_process_evt;
msg.flush_callback = wlan_ocb_flush_callback; msg.flush_callback = wlan_ocb_flush_callback;
status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); status = scheduler_post_message(QDF_MODULE_ID_OCB,
QDF_MODULE_ID_OCB,
QDF_MODULE_ID_TARGET_IF, &msg);
if (QDF_IS_STATUS_SUCCESS(status)) if (QDF_IS_STATUS_SUCCESS(status))
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
@@ -195,7 +199,9 @@ tgt_ocb_dcc_ndl_update(struct wlan_objmgr_psoc *psoc,
msg.callback = ocb_process_evt; msg.callback = ocb_process_evt;
msg.flush_callback = wlan_ocb_flush_callback; msg.flush_callback = wlan_ocb_flush_callback;
status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); status = scheduler_post_message(QDF_MODULE_ID_OCB,
QDF_MODULE_ID_OCB,
QDF_MODULE_ID_TARGET_IF, &msg);
if (QDF_IS_STATUS_SUCCESS(status)) if (QDF_IS_STATUS_SUCCESS(status))
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
@@ -269,7 +275,9 @@ tgt_ocb_dcc_stats_indicate(struct wlan_objmgr_psoc *psoc,
msg.callback = ocb_process_evt; msg.callback = ocb_process_evt;
msg.flush_callback = wlan_ocb_flush_callback; msg.flush_callback = wlan_ocb_flush_callback;
status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); status = scheduler_post_message(QDF_MODULE_ID_OCB,
QDF_MODULE_ID_OCB,
QDF_MODULE_ID_TARGET_IF, &msg);
if (QDF_IS_STATUS_SUCCESS(status)) if (QDF_IS_STATUS_SUCCESS(status))
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;

View File

@@ -107,7 +107,9 @@ QDF_STATUS umac_stop(void)
umac_stop_msg.bodyptr = (void *)&g_stop_evt; umac_stop_msg.bodyptr = (void *)&g_stop_evt;
/* post the message.. */ /* post the message.. */
qdf_status = scheduler_post_msg(QDF_MODULE_ID_SYS, &umac_stop_msg); qdf_status = scheduler_post_message(QDF_MODULE_ID_SYS,
QDF_MODULE_ID_SYS,
QDF_MODULE_ID_SYS, &umac_stop_msg);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) if (!QDF_IS_STATUS_SUCCESS(qdf_status))
qdf_status = QDF_STATUS_E_BADMSG; qdf_status = QDF_STATUS_E_BADMSG;
@@ -282,8 +284,10 @@ void sys_process_mmh_msg(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
/* /*
* Post now the message to the appropriate module for handling * Post now the message to the appropriate module for handling
*/ */
if (QDF_STATUS_SUCCESS != scheduler_post_msg(targetMQ, if (QDF_STATUS_SUCCESS != scheduler_post_message(QDF_MODULE_ID_SYS,
pMsg)) { QDF_MODULE_ID_SYS,
targetMQ,
pMsg)) {
/* /*
* Caller doesn't allocate memory for the pMsg. * Caller doesn't allocate memory for the pMsg.
* It allocate memory for bodyptr free the mem and return * It allocate memory for bodyptr free the mem and return