diff --git a/src/com/android/settings/wifi/WifiConfigController2.java b/src/com/android/settings/wifi/WifiConfigController2.java index 6a780838c84..add37ddca29 100644 --- a/src/com/android/settings/wifi/WifiConfigController2.java +++ b/src/com/android/settings/wifi/WifiConfigController2.java @@ -276,7 +276,7 @@ public class WifiConfigController2 implements TextWatcher, mHiddenSettingsSpinner.getSelectedItemPosition() == NOT_HIDDEN_NETWORK ? View.GONE : View.VISIBLE); - mSecurityInPosition = new Integer[WifiEntry.SECURITY_MAX_VAL]; + mSecurityInPosition = new Integer[WifiEntry.NUM_SECURITY_TYPES]; if (mWifiEntry == null) { // new network configureSecuritySpinner(); diff --git a/src/com/android/settings/wifi/dpp/WifiDppUtils.java b/src/com/android/settings/wifi/dpp/WifiDppUtils.java index 93a35308acb..51cb351f7e7 100644 --- a/src/com/android/settings/wifi/dpp/WifiDppUtils.java +++ b/src/com/android/settings/wifi/dpp/WifiDppUtils.java @@ -252,11 +252,6 @@ public class WifiDppUtils { final WifiConfiguration wifiConfiguration = wifiEntry.getWifiConfiguration(); setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); - // For a transition mode Wi-Fi AP, creates a QR code that's compatible with more devices - if (wifiEntry.getSecurity() == WifiEntry.SECURITY_PSK_SAE_TRANSITION) { - intent.putExtra(EXTRA_WIFI_SECURITY, WifiQrCode.SECURITY_WPA_PSK); - } - return intent; }