Add SAE-EXT-KEY AKM in WPA3 transition mode config
If the softAp configuration is for WPA3 transition mode
and if the hw mode is 802.11be, add the mandatory
AKM SAE-EXT-KEY also.
Bug: 260375081
Test: Manual - Turn on SoftAp in WPA3 transition mode
Change-Id: I5741ed1d93bedce40b1328db5f2248c665a3456d
diff --git a/hostapd/aidl/hostapd.cpp b/hostapd/aidl/hostapd.cpp
index be3b5f8..b313e54 100644
--- a/hostapd/aidl/hostapd.cpp
+++ b/hostapd/aidl/hostapd.cpp
@@ -376,12 +376,18 @@
encryption_config_as_string = StringPrintf(
"wpa=2\n"
"rsn_pairwise=%s\n"
- "wpa_key_mgmt=WPA-PSK SAE\n"
+ "wpa_key_mgmt=%s\n"
"ieee80211w=1\n"
"sae_require_mfp=1\n"
"wpa_passphrase=%s\n"
"sae_password=%s",
is_60Ghz_band_only ? "GCMP" : "CCMP",
+#ifdef CONFIG_IEEE80211BE
+ iface_params.hwModeParams.enable80211BE ?
+ "WPA-PSK SAE SAE-EXT-KEY" : "WPA-PSK SAE",
+#else
+ "WPA-PSK SAE",
+#endif
nw_params.passphrase.c_str(),
nw_params.passphrase.c_str());
break;