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:

committed by
nshrivas

parent
8bf0fa04eb
commit
2512ede55e
@@ -26,6 +26,7 @@
|
||||
#include "reg_db_parser.h"
|
||||
#include "reg_host_11d.h"
|
||||
#include <scheduler_api.h>
|
||||
#include <wlan_reg_services_api.h>
|
||||
|
||||
#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;
|
||||
|
Reference in New Issue
Block a user