|
@@ -681,8 +681,13 @@ 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;
|
|
|
+ /* If this a scan on SAP adapter, use scan priority high */
|
|
|
+ if (adapter->device_mode == QDF_SAP_MODE)
|
|
|
+ params.priority = SCAN_PRIORITY_HIGH;
|
|
|
+ else
|
|
|
+ /* Use default scan priority */
|
|
|
+ params.priority = SCAN_PRIORITY_COUNT;
|
|
|
+
|
|
|
status = wlan_cfg80211_scan(vdev, request, ¶ms);
|
|
|
hdd_objmgr_put_vdev(vdev);
|
|
|
error:
|