Merge "[Wi-Fi DPP] Support WPA2/WPA3 transition mode" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d8916ef151
@@ -205,6 +205,11 @@ public class WifiDppUtils {
|
|||||||
final WifiConfiguration wifiConfiguration = accessPoint.getConfig();
|
final WifiConfiguration wifiConfiguration = accessPoint.getConfig();
|
||||||
setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration);
|
setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration);
|
||||||
|
|
||||||
|
// For a transition mode Wi-Fi AP, creates a QR code that's compatible with more devices
|
||||||
|
if (accessPoint.getSecurity() == AccessPoint.SECURITY_PSK_SAE_TRANSITION) {
|
||||||
|
intent.putExtra(EXTRA_WIFI_SECURITY, WifiQrCode.SECURITY_WPA_PSK);
|
||||||
|
}
|
||||||
|
|
||||||
return intent;
|
return intent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,6 +405,7 @@ public class WifiDppUtils {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AccessPoint.SECURITY_PSK:
|
case AccessPoint.SECURITY_PSK:
|
||||||
|
case AccessPoint.SECURITY_PSK_SAE_TRANSITION:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@@ -412,6 +418,8 @@ public class WifiDppUtils {
|
|||||||
case AccessPoint.SECURITY_PSK:
|
case AccessPoint.SECURITY_PSK:
|
||||||
case AccessPoint.SECURITY_WEP:
|
case AccessPoint.SECURITY_WEP:
|
||||||
case AccessPoint.SECURITY_NONE:
|
case AccessPoint.SECURITY_NONE:
|
||||||
|
case AccessPoint.SECURITY_PSK_SAE_TRANSITION:
|
||||||
|
case AccessPoint.SECURITY_OWE_TRANSITION:
|
||||||
return true;
|
return true;
|
||||||
case AccessPoint.SECURITY_SAE:
|
case AccessPoint.SECURITY_SAE:
|
||||||
if (wifiManager.isWpa3SaeSupported()) {
|
if (wifiManager.isWpa3SaeSupported()) {
|
||||||
|
Reference in New Issue
Block a user