summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net/wifi/WifiConfiguration.java
diff options
context:
space:
mode:
authorVinit Deshpande <vinitd@google.com>2015-03-15 13:37:54 -0700
committerVinit Deshpande <vinitd@google.com>2015-03-15 13:37:54 -0700
commita86f0741c794ffb00490320220219b864a5f90e3 (patch)
treee516e931cdce8e8be9d6eaed13ba4bbdf8854c7f /wifi/java/android/net/wifi/WifiConfiguration.java
parentfc19120fc7c91ae1295ec80f59327d0e44f8b58a (diff)
parent18ae1d22077e1cd8ed71b1e74d14a3a2c4e50a62 (diff)
downloadframeworks_base-a86f0741c794ffb00490320220219b864a5f90e3.zip
frameworks_base-a86f0741c794ffb00490320220219b864a5f90e3.tar.gz
frameworks_base-a86f0741c794ffb00490320220219b864a5f90e3.tar.bz2
am "get channel list from driver for SoftAP channel selection"
merged from goog/mirror-m-wireless-internal-release 18ae1d2 get channel list from driver for SoftAP channel selection
Diffstat (limited to 'wifi/java/android/net/wifi/WifiConfiguration.java')
-rw-r--r--wifi/java/android/net/wifi/WifiConfiguration.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java
index 593af18..2bb1cc5 100644
--- a/wifi/java/android/net/wifi/WifiConfiguration.java
+++ b/wifi/java/android/net/wifi/WifiConfiguration.java
@@ -62,8 +62,6 @@ public class WifiConfiguration implements Parcelable {
public static final String updateIdentiferVarName = "update_identifier";
/** {@hide} */
public static final int INVALID_NETWORK_ID = -1;
- /**{@hide}*/
- private static Random mRandom = new Random(Calendar.getInstance().getTimeInMillis());
/**
* Recognized key management schemes.
@@ -1448,18 +1446,6 @@ public class WifiConfiguration implements Parcelable {
}
}
- public static int chooseApChannel(int apBand) {
- int apChannel;
- if (apBand == 0) {
- apChannel = 1 + mRandom.nextInt(11);
- } else {
- int channel[] = {36,40,44,48,149,153,157,161,165};
- apChannel = channel[mRandom.nextInt(channel.length)];
- }
- Log.d(TAG, "AP set on channel " + apChannel);
- return apChannel;
- }
-
/** @hide */
public int getAuthType() {
if (isValid() == false) {