summaryrefslogtreecommitdiffstats
path: root/wifi/java/android
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2015-02-04 17:19:33 -0800
committerxinhe <xinhe@google.com>2015-02-04 17:19:33 -0800
commit18ae1d22077e1cd8ed71b1e74d14a3a2c4e50a62 (patch)
tree0819eafbc600c6270d738651abdf3765f9756250 /wifi/java/android
parent5d7768ff5ec406f76baacd12a9d6c100a5d22ec3 (diff)
downloadframeworks_base-18ae1d22077e1cd8ed71b1e74d14a3a2c4e50a62.zip
frameworks_base-18ae1d22077e1cd8ed71b1e74d14a3a2c4e50a62.tar.gz
frameworks_base-18ae1d22077e1cd8ed71b1e74d14a3a2c4e50a62.tar.bz2
get channel list from driver for SoftAP channel selection
Instead of hard coding the available channel list, we should get channel list from driver Bug:19237543 Change-Id: Id2ec689273407f54709cb034d6ba666f91da51c0
Diffstat (limited to 'wifi/java/android')
-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 8b24f9f..22c236e 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.
@@ -1337,18 +1335,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) {