From 739e33f1e074dbb4e1e8933e22f047b38574f1b1 Mon Sep 17 00:00:00 2001 From: Shashikala Prabhu Date: Thu, 26 Oct 2017 17:50:58 +0530 Subject: [PATCH] qcacmn: Do not call scheduler for PO and FO PO = Partial Offload FO = Full offload If the channel list preparation is handled in the same thread of execution then call to scheduler is not required. Change-Id: I46bf07ac14c1101de5e00165f34e937ab939659e CRs-Fixed: 2124580 --- umac/regulatory/core/src/reg_services.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index 8a8625edcfd4..721c536d1f29 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -2471,14 +2471,15 @@ static void reg_propagate_mas_chan_list_to_pdev(struct wlan_objmgr_psoc *psoc, reg_compute_pdev_current_chan_list(pdev_priv_obj); reg_tx_ops = reg_get_psoc_tx_ops(psoc); - if (reg_tx_ops->fill_umac_legacy_chanlist) + if (reg_tx_ops->fill_umac_legacy_chanlist) { reg_tx_ops->fill_umac_legacy_chanlist(pdev, pdev_priv_obj->cur_chan_list); - - if (*dir == NORTHBOUND) - reg_send_scheduler_msg_nb(psoc, pdev); - else - reg_send_scheduler_msg_sb(psoc, pdev); + } else { + if (*dir == NORTHBOUND) + reg_send_scheduler_msg_nb(psoc, pdev); + else + reg_send_scheduler_msg_sb(psoc, pdev); + } } static void reg_run_11d_state_machine(struct wlan_objmgr_psoc *psoc)