From fbfa88ea3937633a454749c7b63f3f17e33b2ae8 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Mon, 11 Jun 2018 18:22:14 +0530 Subject: [PATCH] qcacld-3.0: Increase SAP ACS scan priority to high from low The function sap_goto_channel_sel triggers the pre start bss scan for SAP. After this scan is queued, the hostapd process gets scheduled after 3 secs and proceeds to select the channel to start the SAP. If scan completion for the ACS scan was not received, it selects the default channels. ACS scan is sent to firmware with low priority like other normal scan. Increasing the priority of the scan will ensure that the scan completion is done prior to the other existing scans pending on the queue. Escalate the priority of the ACS scan from low to high. Change-Id: Ibe558a4a323f276cce6eaabb3b62db217dbd5a94 CRs-Fixed: 2245200 --- core/sap/src/sap_fsm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index ff84d91d1378..4800bc13e354 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1012,6 +1012,7 @@ QDF_STATUS sap_goto_channel_sel(struct sap_context *sap_context, vdev_id = wlan_vdev_get_id(vdev); req->scan_req.vdev_id = vdev_id; req->scan_req.scan_req_id = sap_context->req_id; + req->scan_req.scan_priority = SCAN_PRIORITY_HIGH; sap_get_channel_list(sap_context, &channel_list, &num_of_channels); #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE