Browse Source

qcacld-3.0: Add support to pass scan priority in cfg initiated scan

Add support to pass scan priority to override the def scan priority
for cfg initiated scan.

Change-Id: I454c2667d1814d96fbb611e6ecbb90d4154ec9b5
CRs-Fixed: 2449730
sheenam monga 6 years ago
parent
commit
a4efa2af85
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_scan.c

+ 2 - 0
core/hdd/src/wlan_hdd_scan.c

@@ -681,6 +681,8 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
 	     !qdf_mem_cmp(&request->ssids[0], "DIRECT-", 7))
 		ucfg_p2p_status_scan(vdev);
 
+	/* set priority as SCAN_PRIORITY_COUNT to use default scan priority */
+	params.priority = SCAN_PRIORITY_COUNT;
 	status = wlan_cfg80211_scan(vdev, request, &params);
 	hdd_objmgr_put_vdev(vdev);
 error: