From 6ec44e61ba7e137eb7080d1143a86cafa39afec7 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Tue, 28 Aug 2018 20:09:50 +0530 Subject: [PATCH] qcacmn: Add src, and dst id support in REGULATORY 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: Ia8c9355528b430bda9231c24c07a648f1931e0eb CRs-Fixed: 2306018 --- umac/regulatory/core/src/reg_services.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index c38e1e4cad7f..e14856248716 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -2736,7 +2736,9 @@ QDF_STATUS reg_send_scheduler_msg_sb(struct wlan_objmgr_psoc *psoc, msg.callback = reg_sched_chan_change_cbks_sb; msg.flush_callback = reg_chan_change_flush_cbk_sb; - status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); + status = scheduler_post_message(QDF_MODULE_ID_REGULATORY, + QDF_MODULE_ID_REGULATORY, + QDF_MODULE_ID_TARGET_IF, &msg); if (QDF_IS_STATUS_ERROR(status)) { wlan_objmgr_pdev_release_ref(pdev, WLAN_REGULATORY_SB_ID); wlan_objmgr_psoc_release_ref(psoc, WLAN_REGULATORY_SB_ID); @@ -2778,7 +2780,9 @@ static QDF_STATUS reg_send_scheduler_msg_nb(struct wlan_objmgr_psoc *psoc, msg.callback = reg_sched_chan_change_cbks_nb; msg.flush_callback = reg_chan_change_flush_cbk_nb; - status = scheduler_post_msg(QDF_MODULE_ID_OS_IF, &msg); + status = scheduler_post_message(QDF_MODULE_ID_REGULATORY, + QDF_MODULE_ID_REGULATORY, + QDF_MODULE_ID_OS_IF, &msg); if (QDF_IS_STATUS_ERROR(status)) { wlan_objmgr_pdev_release_ref(pdev, WLAN_REGULATORY_NB_ID); wlan_objmgr_psoc_release_ref(psoc, WLAN_REGULATORY_NB_ID); @@ -2847,7 +2851,9 @@ static QDF_STATUS reg_sched_11d_msg(struct wlan_objmgr_psoc *psoc) msg.callback = reg_send_11d_msg_cbk; msg.flush_callback = reg_send_11d_flush_cbk; - status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg); + status = scheduler_post_message(QDF_MODULE_ID_REGULATORY, + QDF_MODULE_ID_REGULATORY, + QDF_MODULE_ID_TARGET_IF, &msg); if (QDF_IS_STATUS_ERROR(status)) { wlan_objmgr_psoc_release_ref(psoc, WLAN_REGULATORY_SB_ID); reg_err("scheduler msg posting failed");