qcacmn: Add INI for 11d scan interval

The default 11d scan interval is 1 hour. But make the 11D scan interval
programmable by user to test different intervals. Therefore provide INI
for the same.

Change-Id: I36dbe8b87d4175e51bf2f275b8203ba9609a0625
CRs-Fixed: 2088739
This commit is contained in:
Amar Singhal 2017-08-07 12:24:43 -07:00 • committed by snandini
commit 9fef21a8ce
3 changed files with 6 additions and 2 deletions

View file

@ -64,6 +64,7 @@ struct wlan_regulatory_psoc_priv_obj {
uint8_t vdev_id_for_11d_scan;
uint8_t master_vdev_cnt;
uint8_t vdev_cnt_11d;
uint32_t scan_11d_interval;
uint8_t vdev_ids_11d[MAX_STA_VDEV_CNT];
bool user_ctry_priority;
bool user_ctry_set;

View file

@ -40,7 +40,6 @@
#define CHAN_13_CENT_FREQ 2472
#define MAX_PWR_FCC_CHAN_13 2
#define CHAN_144_CENT_FREQ 5720
#define SCAN_11D_PERIOD_MS 360000
#define IS_VALID_PSOC_REG_OBJ(psoc_priv_obj) (NULL != psoc_priv_obj)
#define IS_VALID_PDEV_REG_OBJ(pdev_priv_obj) (NULL != pdev_priv_obj)
@ -2354,7 +2353,7 @@ static QDF_STATUS reg_send_11d_msg_cbk(struct scheduler_msg *msg)
if (psoc_priv_obj->enable_11d_supp) {
start_req.vdev_id = psoc_priv_obj->vdev_id_for_11d_scan;
start_req.scan_period_msec = SCAN_11D_PERIOD_MS;
start_req.scan_period_msec = psoc_priv_obj->scan_11d_interval;
start_req.start_interval_msec = 0;
reg_debug("sending start msg");
tx_ops->start_11d_scan(psoc, &start_req);
@ -3252,6 +3251,8 @@ QDF_STATUS reg_set_config_vars(struct wlan_objmgr_psoc *psoc,
psoc_priv_obj->enable_11d_supp_original =
config_vars.enable_11d_support;
psoc_priv_obj->scan_11d_interval =
config_vars.scan_11d_interval;
psoc_priv_obj->user_ctry_priority =
config_vars.userspace_ctry_priority;
psoc_priv_obj->dfs_enabled =

View file

@ -738,6 +738,7 @@ enum band_info {
/**
* struct reg_config_vars
* @enable_11d_support: enable 11d support
* @scan_11d_interval: 11d scan interval in ms
* @userspace_ctry_priority: user priority
* @band_capability: band capability
* @dfs_disable: dfs disabled
@ -745,6 +746,7 @@ enum band_info {
*/
struct reg_config_vars {
uint32_t enable_11d_support;
uint32_t scan_11d_interval;
uint32_t userspace_ctry_priority;
enum band_info band_capability;
uint32_t dfs_enabled;