qcacmn: Initialize scan_f_chan_stat_evnt from configuration

Currently driver is not initialize scan_f_chan_stat_evnt from
the configuration file which causes WMI_SCAN_CHAN_STAT_EVENT
to be always not included in the scan flag.

Add changes to initialize scan_f_chan_stat_evnt based on
ini configuration.

Change-Id: If6ea1d5c4efcc6d934daf00b537f25f0727ee55b
CRs-Fixed: 2031301
This commit is contained in:
Kapil Gupta 2017-04-10 15:28:44 +05:30 • committed by Gerrit - the friendly Code Review server
commit a6e44ca3bd
2 changed files with 3 additions and 0 deletions

View file

@ -936,6 +936,7 @@ struct pno_user_cfg {
* @conc_min_rest_time: default concurrent min rest time
* @conc_idle_time: default concurrent idle time
* @scan_cache_aging_time: default scan cache aging time
* @is_snr_monitoring_enabled: whether snr monitoring enabled or not
* @scan_dwell_time_mode: Adaptive dweltime mode
* @pno_cfg: Pno related config params
*/
@ -948,6 +949,7 @@ struct scan_user_cfg {
uint32_t conc_min_rest_time;
uint32_t conc_idle_time;
uint32_t scan_cache_aging_time;
bool is_snr_monitoring_enabled;
enum scan_dwelltime_adaptive_mode scan_dwell_time_mode;
struct pno_user_cfg pno_cfg;
};

View file

@ -930,6 +930,7 @@ QDF_STATUS ucfg_scan_update_user_config(struct wlan_objmgr_psoc *psoc,
scan_def->conc_idle_time = scan_cfg->conc_idle_time;
scan_def->scan_cache_aging_time = scan_cfg->scan_cache_aging_time;
scan_def->adaptive_dwell_time_mode = scan_cfg->scan_dwell_time_mode;
scan_def->scan_f_chan_stat_evnt = scan_cfg->is_snr_monitoring_enabled;
return ucfg_scan_update_pno_config(&scan_obj->pno_cfg,
&scan_cfg->pno_cfg);