diff options
author | xinhe <xinhe@google.com> | 2015-06-22 15:26:33 -0700 |
---|---|---|
committer | xinhe <xinhe@google.com> | 2015-06-22 15:55:28 -0700 |
commit | 5a0d83b11e9d7498bd1dc769f22a7569b46cb2fe (patch) | |
tree | 66d5053a859a59ff15d3925c6225635abe75358a /src/com/android/settings/wifi | |
parent | 14f5da9b4d2cb1e0b6828312613bf8f4c8a1df2d (diff) | |
download | packages_apps_Settings-5a0d83b11e9d7498bd1dc769f22a7569b46cb2fe.zip packages_apps_Settings-5a0d83b11e9d7498bd1dc769f22a7569b46cb2fe.tar.gz packages_apps_Settings-5a0d83b11e9d7498bd1dc769f22a7569b46cb2fe.tar.bz2 |
if do not turn on wifi STA or SAP, there is no 5GHz choice
for SAP config
b/22008176
Change-Id: Id1020f975bce1ff7a3c738c4180f3d7686718d82
Diffstat (limited to 'src/com/android/settings/wifi')
-rw-r--r-- | src/com/android/settings/wifi/WifiApDialog.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/wifi/WifiApDialog.java b/src/com/android/settings/wifi/WifiApDialog.java index d30457b..b43a7ac 100644 --- a/src/com/android/settings/wifi/WifiApDialog.java +++ b/src/com/android/settings/wifi/WifiApDialog.java @@ -134,9 +134,10 @@ public class WifiApDialog extends AlertDialog implements View.OnClickListener, ArrayAdapter <CharSequence> channelAdapter; String countryCode = mWifiManager.getCountryCode(); - if (!mWifiManager.is5GHzBandSupported() || countryCode == null) { + if (!mWifiManager.isDualBandSupported() || countryCode == null) { //If no country code, 5GHz AP is forbidden - Log.i(TAG," NO country code, forbid 5GHz"); + Log.i(TAG,(!mWifiManager.isDualBandSupported() ? "Device do not support 5GHz " :"") + + (countryCode == null ? " NO country code" :"") + " forbid 5GHz"); channelAdapter = ArrayAdapter.createFromResource(mContext, R.array.wifi_ap_band_config_2G_only, android.R.layout.simple_spinner_item); mWifiConfig.apBand = 0; |