From 4b86dafdf3f3d7a4f768821ba2efaee88729d246 Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Thu, 2 Mar 2017 11:44:49 -0800 Subject: qcacld-3.0: Add support for delay_start_time in scheduled scan request Add support to pass delay_start_time to firmware, this delay will be used before starting the first scan cycle. Change-Id: Ia3043eecc38507b1581fa85b8787b2e7786017de CRs-Fixed: 2014142 --- core/hdd/src/wlan_hdd_scan.c | 1 + core/mac/inc/sir_api.h | 2 ++ core/wma/src/wma_scan_roam.c | 1 + 3 files changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index a97564e53fa6..cb0b9631b988 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -2715,6 +2715,7 @@ static void hdd_config_sched_scan_plan(tpSirPNOScanReq pno_req, struct cfg80211_sched_scan_request *request, hdd_context_t *hdd_ctx) { + pno_req->delay_start_time = request->delay; /* * As of now max 2 scan plans were supported by firmware * if number of scan plan supported by firmware increased below logic diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index e3a32c780cd5..db9e319c4dd8 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -2941,6 +2941,7 @@ struct connected_pno_band_rssi_pref { * @sessionId: Session identifier * @fast_scan_period: Fast Scan period * @slow_scan_period: Slow scan period + * @delay_start_time: delay in seconds to use before starting the first scan * @fast_scan_max_cycles: Fast scan max cycles * @us24GProbeTemplateLen: 2.4G probe template length * @p24GProbeTemplate: 2.4G probe template @@ -2960,6 +2961,7 @@ typedef struct sSirPNOScanReq { uint8_t sessionId; uint32_t fast_scan_period; uint32_t slow_scan_period; + uint32_t delay_start_time; uint8_t fast_scan_max_cycles; uint32_t active_min_time; diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index cec861b3bc66..656f1dabd29f 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -3156,6 +3156,7 @@ QDF_STATUS wma_pno_start(tp_wma_handle wma, tpSirPNOScanReq pno) params->fast_scan_period = pno->fast_scan_period; params->slow_scan_period = pno->slow_scan_period; params->fast_scan_max_cycles = pno->fast_scan_max_cycles; + params->delay_start_time = pno->delay_start_time; params->active_min_time = pno->active_min_time; params->active_max_time = pno->active_max_time; params->passive_min_time = pno->passive_min_time; -- cgit v1.2.3