Browse Source

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
gaurank kathpalia 6 years ago
parent
commit
d9ee9f2481

+ 3 - 1
components/ocb/core/src/wlan_ocb_main.c

@@ -427,7 +427,9 @@ QDF_STATUS ocb_vdev_start(struct ocb_pdev_obj *ocb_obj)
 	msg.bodyptr = ocb_obj;
 	msg.callback = ocb_process_start_vdev_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))
 		ocb_err("Failed to post vdev start message");
 

+ 12 - 4
components/ocb/dispatcher/src/wlan_ocb_tgt_api.c

@@ -85,7 +85,9 @@ tgt_ocb_channel_config_status(struct wlan_objmgr_psoc *psoc,
 	msg.bodyptr = event;
 	msg.callback = ocb_process_evt;
 	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))
 		return QDF_STATUS_SUCCESS;
@@ -141,7 +143,9 @@ tgt_ocb_get_tsf_timer(struct wlan_objmgr_psoc *psoc,
 	msg.callback = ocb_process_evt;
 	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))
 		return QDF_STATUS_SUCCESS;
 
@@ -195,7 +199,9 @@ tgt_ocb_dcc_ndl_update(struct wlan_objmgr_psoc *psoc,
 	msg.callback = ocb_process_evt;
 	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))
 		return QDF_STATUS_SUCCESS;
 
@@ -269,7 +275,9 @@ tgt_ocb_dcc_stats_indicate(struct wlan_objmgr_psoc *psoc,
 	msg.callback = ocb_process_evt;
 	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))
 		return QDF_STATUS_SUCCESS;
 

+ 7 - 3
core/mac/src/sys/common/src/wlan_qct_sys.c

@@ -107,7 +107,9 @@ QDF_STATUS umac_stop(void)
 	umac_stop_msg.bodyptr = (void *)&g_stop_evt;
 
 	/* 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))
 		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
 	 */
-	if (QDF_STATUS_SUCCESS != scheduler_post_msg(targetMQ,
-					 pMsg)) {
+	if (QDF_STATUS_SUCCESS != scheduler_post_message(QDF_MODULE_ID_SYS,
+							 QDF_MODULE_ID_SYS,
+							 targetMQ,
+							 pMsg)) {
 		/*
 		 * Caller doesn't allocate memory for the pMsg.
 		 * It allocate memory for bodyptr free the mem and return