From c90005d2924f305f19a37720932cb2fa34d26446 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Thu, 20 Mar 2014 11:30:58 -0700 Subject: Use correct wifi batching parameter ranges. Note these are slightly adjusted capabilities of N5. Cherry pick. Change-Id: Ia6888f6a5a69d135ff7e3c87d9744e18265fb3bf --- wifi/java/android/net/wifi/BatchedScanSettings.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'wifi') 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; -- cgit v1.1