diff options
author | xinhe <xinhe@google.com> | 2015-02-04 17:19:33 -0800 |
---|---|---|
committer | xinhe <xinhe@google.com> | 2015-02-04 17:19:33 -0800 |
commit | 18ae1d22077e1cd8ed71b1e74d14a3a2c4e50a62 (patch) | |
tree | 0819eafbc600c6270d738651abdf3765f9756250 /services | |
parent | 5d7768ff5ec406f76baacd12a9d6c100a5d22ec3 (diff) | |
download | frameworks_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 'services')
-rw-r--r-- | services/core/java/com/android/server/NetworkManagementService.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/NetworkManagementService.java b/services/core/java/com/android/server/NetworkManagementService.java index 891f572..ecf2a59 100644 --- a/services/core/java/com/android/server/NetworkManagementService.java +++ b/services/core/java/com/android/server/NetworkManagementService.java @@ -1352,14 +1352,8 @@ public class NetworkManagementService extends INetworkManagementService.Stub if (wifiConfig == null) { mConnector.execute("softap", "set", wlanIface); } else { - int apChannel; - if (wifiConfig.apChannel == 0) { - apChannel = WifiConfiguration.chooseApChannel(wifiConfig.apBand); - } else { - apChannel = wifiConfig.apChannel; - } mConnector.execute("softap", "set", wlanIface, wifiConfig.SSID, - "broadcast", Integer.toString(apChannel), + "broadcast", Integer.toString(wifiConfig.apChannel), getSecurityType(wifiConfig), new SensitiveArg(wifiConfig.preSharedKey)); } |