Hotspot: Add QR code support for WPA3 SAE/OWE SAP
Enable QR code support to scan and connect WPA3 Hotspot from UI
Change-Id: I368be7fd530dbc34f0bb651a115322c0e8248b4e
CRs-Fixed: 2729448
diff --git a/src/com/android/settings/wifi/dpp/WifiDppUtils.java b/src/com/android/settings/wifi/dpp/WifiDppUtils.java
index 7a502c9..10f663f 100644
--- a/src/com/android/settings/wifi/dpp/WifiDppUtils.java
+++ b/src/com/android/settings/wifi/dpp/WifiDppUtils.java
@@ -337,6 +337,8 @@
String security;
if (softApConfiguration.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) {
security = WifiQrCode.SECURITY_WPA_PSK;
+ } else if (softApConfiguration.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION) {
+ security = WifiQrCode.SECURITY_SAE;
} else {
security = WifiQrCode.SECURITY_NO_PASSWORD;
}
@@ -484,6 +486,8 @@
// it supports PSK and WEP and non security
// KeyMgmt.NONE is for WEP or non security
return softApConfiguration.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK
+ || softApConfiguration.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION
+ || softApConfiguration.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_OWE
|| softApConfiguration.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_OPEN;
}