qcacmn: Add option to set high priority scan

For enhanced  repeater independent mode scan request
from wpa_supplicant needs to be set in high priority scan.

Change-Id: I4f95d0e7b2f1d9eb68ed14efd4ee3932ced5af61
CRs-Fixed: 2432916
This commit is contained in:
Gurumoorthi Gnanasambandhan
2019-05-03 16:49:35 +05:30
committed by nshrivas
parent debe2b3b9c
commit d9ee8fd96b
3 changed files with 8 additions and 2 deletions

View File

@@ -124,6 +124,7 @@ struct scan_req {
* @source: scan request source
* @default_ie: default scan ie
* @vendor_ie: vendor ie
* @priority: scan priority
* @half_rate: Half rate flag
* @quarter_rate: Quarter rate flag
* @strict_pscan: strict passive scan flag
@@ -132,6 +133,7 @@ struct scan_params {
uint8_t source;
struct element_info default_ie;
struct element_info vendor_ie;
enum scan_priority priority;
bool half_rate;
bool quarter_rate;
bool strict_pscan;

View File

@@ -1491,6 +1491,9 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
if (is_p2p_scan)
req->scan_req.scan_priority = SCAN_PRIORITY_HIGH;
if (params->priority != SCAN_PRIORITY_COUNT)
req->scan_req.scan_priority = params->priority;
if (request->ie_len)
extra_ie_len = request->ie_len;
else if (params->default_ie.ptr && params->default_ie.len)