diff options
author | Wei Wang <weiwa@google.com> | 2014-03-20 11:30:58 -0700 |
---|---|---|
committer | Wei Wang <weiwa@google.com> | 2014-04-01 22:51:52 +0000 |
commit | c90005d2924f305f19a37720932cb2fa34d26446 (patch) | |
tree | 28dca631f086e6c3c70878b48abf3ecd53f5f395 /wifi | |
parent | 53c90cf916ddd1151f042a61a569ea75a220b26e (diff) | |
download | frameworks_base-c90005d2924f305f19a37720932cb2fa34d26446.zip frameworks_base-c90005d2924f305f19a37720932cb2fa34d26446.tar.gz frameworks_base-c90005d2924f305f19a37720932cb2fa34d26446.tar.bz2 |
Use correct wifi batching parameter ranges.
Note these are slightly adjusted capabilities of N5.
Cherry pick.
Change-Id: Ia6888f6a5a69d135ff7e3c87d9744e18265fb3bf
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/BatchedScanSettings.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wifi/java/android/net/wifi/BatchedScanSettings.java b/wifi/java/android/net/wifi/BatchedScanSettings.java index f7ebc17..54801ad 100644 --- a/wifi/java/android/net/wifi/BatchedScanSettings.java +++ b/wifi/java/android/net/wifi/BatchedScanSettings.java @@ -34,17 +34,17 @@ public class BatchedScanSettings implements Parcelable { /** Used to indicate no preference for an int value */ public final static int UNSPECIFIED = Integer.MAX_VALUE; - // TODO - make MIN/mAX dynamic and gservices adjustable. + // TODO - make MIN/mAX as standard for wifi batch capability requirement. public final static int MIN_SCANS_PER_BATCH = 2; - public final static int MAX_SCANS_PER_BATCH = 255; + public final static int MAX_SCANS_PER_BATCH = 20; public final static int DEFAULT_SCANS_PER_BATCH = MAX_SCANS_PER_BATCH; public final static int MIN_AP_PER_SCAN = 2; - public final static int MAX_AP_PER_SCAN = 255; + public final static int MAX_AP_PER_SCAN = 16; public final static int DEFAULT_AP_PER_SCAN = 16; - public final static int MIN_INTERVAL_SEC = 0; - public final static int MAX_INTERVAL_SEC = 3600; + public final static int MIN_INTERVAL_SEC = 10; + public final static int MAX_INTERVAL_SEC = 500; public final static int DEFAULT_INTERVAL_SEC = 30; public final static int MIN_AP_FOR_DISTANCE = 0; |