diff options
author | Ahmed ElArabawy <arabawy@google.com> | 2022-02-04 15:58:55 -0800 |
---|---|---|
committer | Ahmed ElArabawy <arabawy@google.com> | 2022-02-04 15:58:55 -0800 |
commit | 1aaf1803c52469dc0bf08916c3c35d11e3ab48c5 (patch) | |
tree | 6a2eaa52264d7851b54082c1e9f1897ad0657677 /hostapd | |
parent | f9776b948a1f13ae173203a678dcfa059b09cef2 (diff) | |
download | wpa_supplicant_8-1aaf1803c52469dc0bf08916c3c35d11e3ab48c5.tar.gz |
Hostapd-AIDL: add OWE configuration support.
This Commit adds support for OWE configuration
Bug: 217669241
Test: VTS tests
Change-Id: Ib876ba903ce0d7f247059baa8444c9f733085daf
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/aidl/hostapd.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/hostapd/aidl/hostapd.cpp b/hostapd/aidl/hostapd.cpp index c24e4f74..515fda18 100644 --- a/hostapd/aidl/hostapd.cpp +++ b/hostapd/aidl/hostapd.cpp @@ -400,7 +400,15 @@ std::string CreateHostapdConfig( is_6Ghz_band_only ? 1 : 2, nw_params.passphrase.c_str()); break; - case EncryptionType::OWE_TRANSITION: + case EncryptionType::WPA3_OWE_TRANSITION: + encryption_config_as_string = StringPrintf( + "wpa=2\n" + "rsn_pairwise=%s\n" + "wpa_key_mgmt=OWE\n" + "ieee80211w=2", + is_60Ghz_band_only ? "GCMP" : "CCMP"); + break; + case EncryptionType::WPA3_OWE: encryption_config_as_string = StringPrintf( "wpa=2\n" "rsn_pairwise=%s\n" @@ -836,7 +844,7 @@ std::vector<uint8_t> generateRandomOweSsid() iface_params_new.name = managed_interfaces[i]; std::string owe_transition_ifname = ""; - if (nw_params.encryptionType == EncryptionType::OWE_TRANSITION) { + if (nw_params.encryptionType == EncryptionType::WPA3_OWE_TRANSITION) { if (i == 0 && i+1 < channelParamsListSize) { owe_transition_ifname = managed_interfaces[i+1]; nw_params_new.encryptionType = EncryptionType::NONE; |