Parcourir la source

qcacld-3.0: Add src, and dst id support in TX/RX

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: Ia79d1e8ceda97f956eadcef50524b8307fcc247b
CRs-Fixed: 2305993
gaurank kathpalia il y a 6 ans
Parent
commit
9fb3f4b3cb
2 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. 3 1
      core/dp/txrx/ol_txrx.c
  2. 4 2
      core/wma/src/wma_data.c

+ 3 - 1
core/dp/txrx/ol_txrx.c

@@ -5031,7 +5031,9 @@ static void ol_txrx_post_data_stall_event(
 	msg.bodyptr = data_stall_info;
 	msg.bodyval = 0;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_SYS, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TXRX,
+					QDF_MODULE_ID_HDD,
+					QDF_MODULE_ID_SYS, &msg);
 
 	if (status != QDF_STATUS_SUCCESS) {
 		QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,

+ 4 - 2
core/wma/src/wma_data.c

@@ -2995,8 +2995,10 @@ void ol_rx_err(void *pdev, uint8_t vdev_id,
 	cds_msg.bodyptr = (void *) mic_err_ind;
 
 	if (QDF_STATUS_SUCCESS !=
-		scheduler_post_msg(QDF_MODULE_ID_SME,
-				     &cds_msg)) {
+		scheduler_post_message(QDF_MODULE_ID_TXRX,
+				       QDF_MODULE_ID_SME,
+				       QDF_MODULE_ID_SME,
+				       &cds_msg)) {
 		WMA_LOGE("%s: could not post mic failure indication to SME",
 			 __func__);
 		qdf_mem_free((void *)mic_err_ind);