Loading src/com/android/settings/wifi/WifiConfigController.java +16 −6 Original line number Diff line number Diff line Loading @@ -536,8 +536,9 @@ public class WifiConfigController implements TextWatcher, } else { enabled = ipAndProxyFieldsAreValid(); } if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) && mEapCaCertSpinner != null && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE) { String caCertSelection = (String) mEapCaCertSpinner.getSelectedItem(); Loading @@ -553,8 +554,9 @@ public class WifiConfigController implements TextWatcher, enabled = false; } } if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) && mEapUserCertSpinner != null && mView.findViewById(R.id.l_user_cert).getVisibility() != View.GONE && mEapUserCertSpinner.getSelectedItem().equals(mUnspecifiedCertString)) { Loading Loading @@ -651,10 +653,13 @@ public class WifiConfigController implements TextWatcher, break; case AccessPoint.SECURITY_EAP: case AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE: case AccessPoint.SECURITY_EAP_SUITE_B: if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) { // allowedSuiteBCiphers will be set according to certificate type config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B); } else if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE) { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_WPA3_ENTERPRISE); } else { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP); } Loading Loading @@ -1693,9 +1698,14 @@ public class WifiConfigController implements TextWatcher, if (mWifiManager.isWpa3SaeSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_sae)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_SAE; } spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa_wpa2)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP; spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa3)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE; } else { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP; } if (mWifiManager.isWpa3SuiteBSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_suiteb)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP_SUITE_B; Loading src/com/android/settings/wifi/WifiConfigController2.java +13 −2 Original line number Diff line number Diff line Loading @@ -500,6 +500,7 @@ public class WifiConfigController2 implements TextWatcher, enabled = ipAndProxyFieldsAreValid(); } if ((mWifiEntrySecurity == WifiEntry.SECURITY_EAP || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_SUITE_B) && mEapCaCertSpinner != null && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE) { Loading @@ -517,6 +518,7 @@ public class WifiConfigController2 implements TextWatcher, } } if ((mWifiEntrySecurity == WifiEntry.SECURITY_EAP || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_SUITE_B) && mEapUserCertSpinner != null && mView.findViewById(R.id.l_user_cert).getVisibility() != View.GONE Loading Loading @@ -615,10 +617,13 @@ public class WifiConfigController2 implements TextWatcher, break; case WifiEntry.SECURITY_EAP: case WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE: case WifiEntry.SECURITY_EAP_SUITE_B: if (mWifiEntrySecurity == WifiEntry.SECURITY_EAP_SUITE_B) { // allowedSuiteBCiphers will be set according to certificate type config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B); } else if (mWifiEntrySecurity == WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE) { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_WPA3_ENTERPRISE); } else { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP); } Loading Loading @@ -942,6 +947,7 @@ public class WifiConfigController2 implements TextWatcher, } if (mWifiEntrySecurity != WifiEntry.SECURITY_EAP && mWifiEntrySecurity != WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE && mWifiEntrySecurity != WifiEntry.SECURITY_EAP_SUITE_B) { mView.findViewById(R.id.eap).setVisibility(View.GONE); return; Loading Loading @@ -1660,9 +1666,14 @@ public class WifiConfigController2 implements TextWatcher, if (mWifiManager.isWpa3SaeSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_sae)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_SAE; } spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa_wpa2)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP; spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa3)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE; } else { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP; } if (mWifiManager.isWpa3SuiteBSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_suiteb)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP_SUITE_B; Loading Loading
src/com/android/settings/wifi/WifiConfigController.java +16 −6 Original line number Diff line number Diff line Loading @@ -536,8 +536,9 @@ public class WifiConfigController implements TextWatcher, } else { enabled = ipAndProxyFieldsAreValid(); } if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) && mEapCaCertSpinner != null && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE) { String caCertSelection = (String) mEapCaCertSpinner.getSelectedItem(); Loading @@ -553,8 +554,9 @@ public class WifiConfigController implements TextWatcher, enabled = false; } } if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) if ((mAccessPointSecurity == AccessPoint.SECURITY_EAP || mAccessPointSecurity == AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE || mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) && mEapUserCertSpinner != null && mView.findViewById(R.id.l_user_cert).getVisibility() != View.GONE && mEapUserCertSpinner.getSelectedItem().equals(mUnspecifiedCertString)) { Loading Loading @@ -651,10 +653,13 @@ public class WifiConfigController implements TextWatcher, break; case AccessPoint.SECURITY_EAP: case AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE: case AccessPoint.SECURITY_EAP_SUITE_B: if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) { // allowedSuiteBCiphers will be set according to certificate type config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B); } else if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE) { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_WPA3_ENTERPRISE); } else { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP); } Loading Loading @@ -1693,9 +1698,14 @@ public class WifiConfigController implements TextWatcher, if (mWifiManager.isWpa3SaeSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_sae)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_SAE; } spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa_wpa2)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP; spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa3)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP_WPA3_ENTERPRISE; } else { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP; } if (mWifiManager.isWpa3SuiteBSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_suiteb)); mSecurityInPosition[idx++] = AccessPoint.SECURITY_EAP_SUITE_B; Loading
src/com/android/settings/wifi/WifiConfigController2.java +13 −2 Original line number Diff line number Diff line Loading @@ -500,6 +500,7 @@ public class WifiConfigController2 implements TextWatcher, enabled = ipAndProxyFieldsAreValid(); } if ((mWifiEntrySecurity == WifiEntry.SECURITY_EAP || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_SUITE_B) && mEapCaCertSpinner != null && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE) { Loading @@ -517,6 +518,7 @@ public class WifiConfigController2 implements TextWatcher, } } if ((mWifiEntrySecurity == WifiEntry.SECURITY_EAP || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE || mWifiEntrySecurity == WifiEntry.SECURITY_EAP_SUITE_B) && mEapUserCertSpinner != null && mView.findViewById(R.id.l_user_cert).getVisibility() != View.GONE Loading Loading @@ -615,10 +617,13 @@ public class WifiConfigController2 implements TextWatcher, break; case WifiEntry.SECURITY_EAP: case WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE: case WifiEntry.SECURITY_EAP_SUITE_B: if (mWifiEntrySecurity == WifiEntry.SECURITY_EAP_SUITE_B) { // allowedSuiteBCiphers will be set according to certificate type config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B); } else if (mWifiEntrySecurity == WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE) { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP_WPA3_ENTERPRISE); } else { config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP); } Loading Loading @@ -942,6 +947,7 @@ public class WifiConfigController2 implements TextWatcher, } if (mWifiEntrySecurity != WifiEntry.SECURITY_EAP && mWifiEntrySecurity != WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE && mWifiEntrySecurity != WifiEntry.SECURITY_EAP_SUITE_B) { mView.findViewById(R.id.eap).setVisibility(View.GONE); return; Loading Loading @@ -1660,9 +1666,14 @@ public class WifiConfigController2 implements TextWatcher, if (mWifiManager.isWpa3SaeSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_sae)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_SAE; } spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa_wpa2)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP; spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_wpa3)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP_WPA3_ENTERPRISE; } else { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP; } if (mWifiManager.isWpa3SuiteBSupported()) { spinnerAdapter.add(mContext.getString(R.string.wifi_security_eap_suiteb)); mSecurityInPosition[idx++] = WifiEntry.SECURITY_EAP_SUITE_B; Loading