From 2512ede55e32ccc8ec4cd1332d65facb9b889d49 Mon Sep 17 00:00:00 2001 From: Priyadarshnee S Date: Mon, 8 Oct 2018 07:21:22 +0530 Subject: [PATCH] qcacmn: Fill legacy channel list from regdb reg_enable_dfs_channels() fills the regualtory channel list with the updated channels (enabling/disabling dfs channels). Added changes to update the legacy channel list from the master channel list. Change-Id: I2ddbeede5bd7ee248654c29de8781ed570f9dfee CRs-Fixed: 2328894 --- umac/regulatory/core/src/reg_services.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index fcd3681018ad..9f670e8fc7ef 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -26,6 +26,7 @@ #include "reg_db_parser.h" #include "reg_host_11d.h" #include +#include #define CHAN_12_CENT_FREQ 2467 #define MAX_PWR_FCC_CHAN_12 8 @@ -3561,6 +3562,7 @@ QDF_STATUS reg_enable_dfs_channels(struct wlan_objmgr_pdev *pdev, struct wlan_regulatory_psoc_priv_obj *psoc_priv_obj; struct wlan_objmgr_psoc *psoc; QDF_STATUS status; + struct wlan_lmac_if_reg_tx_ops *reg_tx_ops; pdev_priv_obj = reg_get_pdev_obj(pdev); if (!IS_VALID_PDEV_REG_OBJ(pdev_priv_obj)) { @@ -3591,6 +3593,15 @@ QDF_STATUS reg_enable_dfs_channels(struct wlan_objmgr_pdev *pdev, reg_compute_pdev_current_chan_list(pdev_priv_obj); + reg_tx_ops = reg_get_psoc_tx_ops(psoc); + + /* Fill the ic channel list with the updated current channel + * chan list. + */ + if (reg_tx_ops->fill_umac_legacy_chanlist) + reg_tx_ops->fill_umac_legacy_chanlist(pdev, + pdev_priv_obj->cur_chan_list); + status = reg_send_scheduler_msg_sb(psoc, pdev); return status;