summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorvandwalle <vandwalle@google.com>2014-11-26 20:06:44 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-26 20:06:44 +0000
commita7af2e8fb659c258c72b1a44bb2073c5cc70486c (patch)
tree897ac1f6731437aaa202e28bc7d30f138edb0675 /wifi
parentbc2f7146e60c7fcc89ca8ac61eb370ca8da2b0e7 (diff)
parentf12fc2e14ebcf14745de03963a621e36bda11232 (diff)
downloadframeworks_base-a7af2e8fb659c258c72b1a44bb2073c5cc70486c.zip
frameworks_base-a7af2e8fb659c258c72b1a44bb2073c5cc70486c.tar.gz
frameworks_base-a7af2e8fb659c258c72b1a44bb2073c5cc70486c.tar.bz2
am f12fc2e1: am b6c9cbc5: am 47772ac8: Merge "make startScan with worksource specific to location scans" into lmp-mr1-dev
* commit 'f12fc2e14ebcf14745de03963a621e36bda11232': make startScan with worksource specific to location scans
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/IWifiManager.aidl2
-rw-r--r--wifi/java/android/net/wifi/WifiManager.java16
2 files changed, 18 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl
index a752686..5ee17bb 100644
--- a/wifi/java/android/net/wifi/IWifiManager.aidl
+++ b/wifi/java/android/net/wifi/IWifiManager.aidl
@@ -61,6 +61,8 @@ interface IWifiManager
void startScan(in ScanSettings requested, in WorkSource ws);
+ void startLocationRestrictedScan(in WorkSource ws);
+
List<ScanResult> getScanResults(String callingPackage);
void disconnect();
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java
index 9ceb421..15b6dd5 100644
--- a/wifi/java/android/net/wifi/WifiManager.java
+++ b/wifi/java/android/net/wifi/WifiManager.java
@@ -1033,6 +1033,22 @@ public class WifiManager {
}
/**
+ * startLocationRestrictedScan()
+ * Trigger a scan which will not make use of DFS channels and is thus not suitable for
+ * establishing wifi connection.
+ * @hide
+ */
+ @SystemApi
+ public boolean startLocationRestrictedScan(WorkSource workSource) {
+ try {
+ mService.startLocationRestrictedScan(workSource);
+ return true;
+ } catch (RemoteException e) {
+ return false;
+ }
+ }
+
+ /**
* Request a scan for access points in specified channel list. Each channel is specified by its
* frequency in MHz, e.g. "5500" (do NOT include "DFS" even though it is). The availability of
* the results is made known later in the same way as {@link #startScan}.