From f6e13db4b6a5eda77ca7fbeceaeb7eb60f171bef Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Tue, 28 Aug 2018 20:06:39 +0530 Subject: [PATCH] qcacmn: Add src, and dst id support in DFS 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: I954a56eb960e8caab25f0734da2f8badf77cad3a CRs-Fixed: 2306020 --- umac/dfs/dispatcher/src/wlan_dfs_mlme_api.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/umac/dfs/dispatcher/src/wlan_dfs_mlme_api.c b/umac/dfs/dispatcher/src/wlan_dfs_mlme_api.c index ecead3f20f..b727afb6d8 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_mlme_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_mlme_api.c @@ -62,7 +62,9 @@ static void dfs_send_radar_ind(struct wlan_objmgr_pdev *pdev, sme_msg.type = eWNI_SME_DFS_RADAR_FOUND; sme_msg.bodyptr = NULL; sme_msg.bodyval = vdev_id; - scheduler_post_msg(QDF_MODULE_ID_SME, &sme_msg); + scheduler_post_message(QDF_MODULE_ID_DFS, + QDF_MODULE_ID_SME, + QDF_MODULE_ID_SME, &sme_msg); dfs_info(NULL, WLAN_DEBUG_DFS_ALWAYS, "eWNI_SME_DFS_RADAR_FOUND pdev%d posted", vdev_id); } @@ -125,7 +127,9 @@ void dfs_mlme_proc_cac(struct wlan_objmgr_pdev *pdev, uint32_t vdev_id) sme_msg.type = eWNI_SME_DFS_CAC_COMPLETE; sme_msg.bodyptr = NULL; sme_msg.bodyval = vdev_id; - scheduler_post_msg(QDF_MODULE_ID_SME, &sme_msg); + scheduler_post_message(QDF_MODULE_ID_DFS, + QDF_MODULE_ID_SME, + QDF_MODULE_ID_SME, &sme_msg); dfs_info(NULL, WLAN_DEBUG_DFS_ALWAYS, "eWNI_SME_DFS_CAC_COMPLETE vdev%d posted", vdev_id); }