am 47772ac8: Merge "make startScan with worksource specific to location scans" into lmp-mr1-dev
* commit '47772ac8e969fae53f8a3cef9066843fe20cae70': make startScan with worksource specific to location scans
This commit is contained in:
@@ -61,6 +61,8 @@ interface IWifiManager
|
|||||||
|
|
||||||
void startScan(in ScanSettings requested, in WorkSource ws);
|
void startScan(in ScanSettings requested, in WorkSource ws);
|
||||||
|
|
||||||
|
void startLocationRestrictedScan(in WorkSource ws);
|
||||||
|
|
||||||
List<ScanResult> getScanResults(String callingPackage);
|
List<ScanResult> getScanResults(String callingPackage);
|
||||||
|
|
||||||
void disconnect();
|
void disconnect();
|
||||||
|
|||||||
@@ -1010,6 +1010,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
|
* 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
|
* frequency in MHz, e.g. "5500" (do NOT include "DFS" even though it is). The availability of
|
||||||
|
|||||||
Reference in New Issue
Block a user