From a6e44ca3bdf92786103968e076aa7acebc254d90 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Mon, 10 Apr 2017 15:28:44 +0530 Subject: [PATCH] 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 --- umac/scan/dispatcher/inc/wlan_scan_public_structs.h | 2 ++ umac/scan/dispatcher/src/wlan_scan_ucfg_api.c | 1 + 2 files changed, 3 insertions(+) diff --git a/umac/scan/dispatcher/inc/wlan_scan_public_structs.h b/umac/scan/dispatcher/inc/wlan_scan_public_structs.h index 00ff1ecf6527..a258b447b2d6 100644 --- a/umac/scan/dispatcher/inc/wlan_scan_public_structs.h +++ b/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; }; diff --git a/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c b/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c index 173d1d4d1661..22954baf0d2d 100644 --- a/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c +++ b/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);