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
This commit is contained in:
Priyadarshnee S
2018-10-08 07:21:22 +05:30
zatwierdzone przez nshrivas
rodzic 8bf0fa04eb
commit 2512ede55e

Wyświetl plik

@@ -26,6 +26,7 @@
#include "reg_db_parser.h" #include "reg_db_parser.h"
#include "reg_host_11d.h" #include "reg_host_11d.h"
#include <scheduler_api.h> #include <scheduler_api.h>
#include <wlan_reg_services_api.h>
#define CHAN_12_CENT_FREQ 2467 #define CHAN_12_CENT_FREQ 2467
#define MAX_PWR_FCC_CHAN_12 8 #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_regulatory_psoc_priv_obj *psoc_priv_obj;
struct wlan_objmgr_psoc *psoc; struct wlan_objmgr_psoc *psoc;
QDF_STATUS status; QDF_STATUS status;
struct wlan_lmac_if_reg_tx_ops *reg_tx_ops;
pdev_priv_obj = reg_get_pdev_obj(pdev); pdev_priv_obj = reg_get_pdev_obj(pdev);
if (!IS_VALID_PDEV_REG_OBJ(pdev_priv_obj)) { 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_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); status = reg_send_scheduler_msg_sb(psoc, pdev);
return status; return status;