diff options
author | Ningyuan Wang <nywang@google.com> | 2017-05-24 17:49:03 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-24 17:49:03 +0000 |
commit | dd798b8777d21082ae75d6ea388c343a2572d8fc (patch) | |
tree | 78ea779c19f8453365b5c77df8810c3b20054511 /service | |
parent | 1244b39da5cdf42266ab7da3848007f8e781e923 (diff) | |
parent | 9dc9a8750ecd1ab25c5b4c7d17c8930ca2ffb6c3 (diff) |
Rename ChannelHelper.getSupplicantScanFreqs()
am: 9dc9a8750e
Change-Id: I37d859c695b1eae7cade6420b7d90a2c01dd29f8
Diffstat (limited to 'service')
4 files changed, 10 insertions, 10 deletions
diff --git a/service/java/com/android/server/wifi/scanner/ChannelHelper.java b/service/java/com/android/server/wifi/scanner/ChannelHelper.java index acb0ac820..d87df072f 100644 --- a/service/java/com/android/server/wifi/scanner/ChannelHelper.java +++ b/service/java/com/android/server/wifi/scanner/ChannelHelper.java @@ -222,10 +222,10 @@ public abstract class ChannelHelper { public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels); /** - * Gets the list of channels that should be supplied to supplicant for a scan. Will either - * be a collection of all channels or null if all channels should be scanned. + * Gets the list of channels scan. Will either be a collection of all channels or null + * if all channels should be scanned. */ - public abstract Set<Integer> getSupplicantScanFreqs(); + public abstract Set<Integer> getScanFreqs(); } diff --git a/service/java/com/android/server/wifi/scanner/KnownBandsChannelHelper.java b/service/java/com/android/server/wifi/scanner/KnownBandsChannelHelper.java index acddc26c6..33cce1c08 100644 --- a/service/java/com/android/server/wifi/scanner/KnownBandsChannelHelper.java +++ b/service/java/com/android/server/wifi/scanner/KnownBandsChannelHelper.java @@ -263,7 +263,7 @@ public class KnownBandsChannelHelper extends ChannelHelper { } @Override - public Set<Integer> getSupplicantScanFreqs() { + public Set<Integer> getScanFreqs() { if (mExactBands == WifiScanner.WIFI_BAND_BOTH_WITH_DFS) { return null; } else { diff --git a/service/java/com/android/server/wifi/scanner/NoBandChannelHelper.java b/service/java/com/android/server/wifi/scanner/NoBandChannelHelper.java index 4f8373b30..b2eeada71 100644 --- a/service/java/com/android/server/wifi/scanner/NoBandChannelHelper.java +++ b/service/java/com/android/server/wifi/scanner/NoBandChannelHelper.java @@ -100,7 +100,7 @@ public class NoBandChannelHelper extends ChannelHelper { @Override public boolean partiallyContainsBand(int band) { - // We don't need to partially collapse settings in supplicant scanner because we + // We don't need to partially collapse settings in wificond scanner because we // don't have any limitation on the number of channels that can be scanned. We also // don't currently keep track of bands very well in NoBandChannelHelper. return false; @@ -124,7 +124,7 @@ public class NoBandChannelHelper extends ChannelHelper { @Override public Set<Integer> getMissingChannelsFromBand(int band) { - // We don't need to partially collapse settings in supplicant scanner because we + // We don't need to partially collapse settings in wificond scanner because we // don't have any limitation on the number of channels that can be scanned. We also // don't currently keep track of bands very well in NoBandChannelHelper. return new ArraySet<Integer>(); @@ -132,7 +132,7 @@ public class NoBandChannelHelper extends ChannelHelper { @Override public Set<Integer> getContainingChannelsFromBand(int band) { - // We don't need to partially collapse settings in supplicant scanner because we + // We don't need to partially collapse settings in wificond scanner because we // don't have any limitation on the number of channels that can be scanned. We also // don't currently keep track of bands very well in NoBandChannelHelper. return new ArraySet<Integer>(); @@ -166,7 +166,7 @@ public class NoBandChannelHelper extends ChannelHelper { } @Override - public Set<Integer> getSupplicantScanFreqs() { + public Set<Integer> getScanFreqs() { if (mAllChannels) { return null; } else { diff --git a/service/java/com/android/server/wifi/scanner/WificondScannerImpl.java b/service/java/com/android/server/wifi/scanner/WificondScannerImpl.java index 590542b41..b088cc01d 100644 --- a/service/java/com/android/server/wifi/scanner/WificondScannerImpl.java +++ b/service/java/com/android/server/wifi/scanner/WificondScannerImpl.java @@ -148,7 +148,7 @@ public class WificondScannerImpl extends WifiScannerImpl implements Handler.Call public WificondScannerImpl(Context context, WifiNative wifiNative, WifiMonitor wifiMonitor, Looper looper, Clock clock) { - // TODO figure out how to get channel information from supplicant + // TODO get channel information from wificond. this(context, wifiNative, wifiMonitor, new NoBandChannelHelper(), looper, clock); } @@ -422,7 +422,7 @@ public class WificondScannerImpl extends WifiScannerImpl implements Handler.Call if ((newScanSettings.backgroundScanActive || newScanSettings.singleScanActive) && !allFreqs.isEmpty()) { pauseHwPnoScan(); - Set<Integer> freqs = allFreqs.getSupplicantScanFreqs(); + Set<Integer> freqs = allFreqs.getScanFreqs(); boolean success = mWifiNative.scan(freqs, hiddenNetworkSSIDSet); if (success) { // TODO handle scan timeout |