Преглед на файлове

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
Kapil Gupta преди 8 години
родител
ревизия
a6e44ca3bd
променени са 2 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 2 0
      umac/scan/dispatcher/inc/wlan_scan_public_structs.h
  2. 1 0
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 2 - 0
umac/scan/dispatcher/inc/wlan_scan_public_structs.h

@@ -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;
 };

+ 1 - 0
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

@@ -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);