qcacld-3.0: Add src, and dst id support in PE
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: Iaa595f9676d469bef8e4d2e284c0b1d14c2321eb
CRs-Fixed: 2305979
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c
index 4b8b149..b639e0c 100644
--- a/core/mac/src/pe/lim/lim_api.c
+++ b/core/mac/src/pe/lim/lim_api.c
@@ -1058,7 +1058,9 @@
QDF_STATUS lim_post_msg_api(tpAniSirGlobal mac, struct scheduler_msg *msg)
{
- return scheduler_post_msg(QDF_MODULE_ID_PE, msg);
+ return scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_PE, msg);
}
QDF_STATUS lim_post_msg_high_priority(tpAniSirGlobal mac,
@@ -1277,7 +1279,9 @@
msg.bodyval = 0;
msg.callback = pe_mc_process_handler;
- status = scheduler_post_msg(QDF_MODULE_ID_SCAN, &msg);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_SCAN, &msg);
if (!QDF_IS_STATUS_SUCCESS(status))
pe_err_rl("Failed to post probe req frame to Scan Queue");
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index c407c3f..8f660bb 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -162,7 +162,9 @@
message.type = SIR_HAL_PDEV_SET_HW_MODE;
pe_debug("Posting SIR_HAL_SOC_SET_HW_MOD to WMA");
- status = scheduler_post_msg(QDF_MODULE_ID_WMA, &message);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA, &message);
if (!QDF_IS_STATUS_SUCCESS(status)) {
pe_err("scheduler_post_msg failed!(err=%d)",
status);
@@ -233,7 +235,9 @@
pe_debug("Post SIR_HAL_PDEV_DUAL_MAC_CFG_REQ to WMA: %x %x",
req_msg->scan_config, req_msg->fw_mode_config);
- status = scheduler_post_msg(QDF_MODULE_ID_WMA, &message);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA, &message);
if (!QDF_IS_STATUS_SUCCESS(status)) {
pe_err("scheduler_post_msg failed!(err=%d)",
status);
@@ -297,7 +301,9 @@
pe_debug("Post SIR_HAL_SOC_ANTENNA_MODE_REQ to WMA: %d %d",
req_msg->num_rx_chains,
req_msg->num_tx_chains);
- status = scheduler_post_msg(QDF_MODULE_ID_WMA, &message);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA, &message);
if (!QDF_IS_STATUS_SUCCESS(status)) {
pe_err("scheduler_post_msg failed!(err=%d)",
status);
@@ -4032,7 +4038,10 @@
msg.reserved = 0;
msg.bodyptr = pHtOpMode;
if (!QDF_IS_STATUS_SUCCESS
- (scheduler_post_msg(QDF_MODULE_ID_WMA, &msg))) {
+ (scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA,
+ &msg))) {
pe_err("Not able to post WMA_UPDATE_OP_MODE message to WMA");
qdf_mem_free(pHtOpMode);
return;
@@ -6031,7 +6040,10 @@
msg.bodyptr = cfg_param;
msg.reserved = 0;
- if (QDF_IS_STATUS_ERROR(scheduler_post_msg(QDF_MODULE_ID_WMA, &msg))) {
+ if (QDF_IS_STATUS_ERROR(scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA,
+ &msg))) {
pe_err("Failed to post WMA_OBSS_COLOR_COLLISION_REQ to WMA");
qdf_mem_free(cfg_param);
} else {
diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c
index 80c53cd..d3613d1 100644
--- a/core/mac/src/pe/lim/lim_process_tdls.c
+++ b/core/mac/src/pe/lim/lim_process_tdls.c
@@ -2709,7 +2709,9 @@
mmhMsg.bodyptr = addStaRsp;
mmhMsg.callback = tgt_tdls_add_peer_rsp;
- return scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &mmhMsg);
+ return scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_TDLS,
+ QDF_MODULE_ID_TARGET_IF, &mmhMsg);
}
/*
@@ -2801,7 +2803,9 @@
sme_rsp->psoc = mac_ctx->psoc;
msg.bodyptr = sme_rsp;
msg.callback = tgt_tdls_send_mgmt_rsp;
- scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg);
+ scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_TDLS,
+ QDF_MODULE_ID_TARGET_IF, &msg);
}
@@ -2970,7 +2974,9 @@
pDelSta->psoc = pMac->psoc;
mmhMsg.bodyptr = pDelSta;
mmhMsg.callback = tgt_tdls_del_peer_rsp;
- return scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &mmhMsg);
+ return scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_TDLS,
+ QDF_MODULE_ID_TARGET_IF, &mmhMsg);
}
/*
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
index 50c44f4..f2daddf 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
@@ -1169,7 +1169,9 @@
pSirMgmtTxCompletionInd->psoc = pMac->psoc;
mmhMsg.callback = tgt_tdls_send_mgmt_tx_completion;
- scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &mmhMsg);
+ scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_TDLS,
+ QDF_MODULE_ID_TARGET_IF, &mmhMsg);
return;
} /*** end lim_send_sme_tdls_delete_all_peer_ind() ***/
@@ -2499,7 +2501,9 @@
msg.type = eWNI_SME_NSS_UPDATE_RSP;
msg.bodyptr = bcn_tx_comp_rsp;
msg.bodyval = 0;
- status = scheduler_post_msg(QDF_MODULE_ID_SME, &msg);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_SME,
+ QDF_MODULE_ID_SME, &msg);
if (QDF_IS_STATUS_ERROR(status)) {
sme_err("Failed to post eWNI_SME_NSS_UPDATE_RSP");
qdf_mem_free(bcn_tx_comp_rsp);
diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c
index feb9785..1d91281 100644
--- a/core/mac/src/pe/lim/lim_utils.c
+++ b/core/mac/src/pe/lim/lim_utils.c
@@ -6359,7 +6359,9 @@
msg.bodyptr = ie_msg;
msg.reserved = 0;
- status = scheduler_post_msg(QDF_MODULE_ID_WMA, &msg);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA, &msg);
if (QDF_STATUS_SUCCESS != status) {
pe_err("Not able to post WMA_SET_IE_INFO to WMA");
qdf_mem_free(ie_msg);
@@ -6537,7 +6539,9 @@
msg.reserved = 0;
if (QDF_STATUS_SUCCESS !=
- scheduler_post_msg(QDF_MODULE_ID_WMA, &msg)) {
+ scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_WMA,
+ QDF_MODULE_ID_WMA, &msg)) {
pe_err("Not able to post WMA_SET_IE_INFO to WDA");
qdf_mem_free(vdev_ie);
return QDF_STATUS_E_FAILURE;
@@ -8416,7 +8420,9 @@
msg.type = eWNI_SME_DFS_CSAIE_TX_COMPLETE_IND;
msg.bodyptr = chan_switch_tx_rsp;
- status = scheduler_post_msg(QDF_MODULE_ID_SME, &msg);
+ status = scheduler_post_message(QDF_MODULE_ID_PE,
+ QDF_MODULE_ID_SME,
+ QDF_MODULE_ID_SME, &msg);
if (QDF_IS_STATUS_ERROR(status)) {
sme_err("Failed to post eWNI_SME_DFS_CSAIE_TX_COMPLETE_IND");
qdf_mem_free(chan_switch_tx_rsp);