@@ -32,6 +32,9 @@ inherit pkgconfig systemd
PACKAGECONFIG ?= "openssl"
PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt"
PACKAGECONFIG[openssl] = ",,openssl"
+PACKAGECONFIG[suiteb] = ",,"
+PACKAGECONFIG[wnm] = ",,"
+PACKAGECONFIG[mbo] = ",,"
CVE_PRODUCT = "wpa_supplicant"
@@ -53,6 +56,19 @@ do_configure () {
-e 's/\(^CONFIG_OWE=\)/#\1/' wpa_supplicant/.config
fi
+ if ${@ bb.utils.contains('PACKAGECONFIG', 'suiteb', 'true', 'false', d) }; then
+ echo 'CONFIG_SUITEB=y' >>wpa_supplicant/.config
+ echo 'CONFIG_SUITEB192=y' >>wpa_supplicant/.config
+ fi
+
+ if ${@ bb.utils.contains('PACKAGECONFIG', 'wnm', 'true', 'false', d) }; then
+ echo 'CONFIG_WNM=y' >>wpa_supplicant/.config
+ fi
+
+ if ${@ bb.utils.contains('PACKAGECONFIG', 'mbo', 'true', 'false', d) }; then
+ echo 'CONFIG_MBO=y' >>wpa_supplicant/.config
+ fi
+
# For rebuild
rm -f wpa_supplicant/*.d wpa_supplicant/dbus/*.d
}
Add optional PACKAGECONFIG entries for suiteb, wnm, and mbo and map these to the corresponding upstream build flags: - suiteb: enable CONFIG_SUITEB and CONFIG_SUITEB192 for WPA-EAP-SUITE-B/WPA-EAP-SUITE-B-192 enterprise modes - wnm: enable CONFIG_WNM for IEEE 802.11v Wireless Network Management - mbo: enable CONFIG_MBO for Multi Band Operation extensions used with BSS Transition Management Upstream hostap configuration keeps these as optional capabilities. Exposing them as PACKAGECONFIG options lets distros opt in for enterprise and roaming use cases without changing the default oe-core feature set. Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> --- .../wpa-supplicant/wpa-supplicant_2.11.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) base-commit: b5c24e1491dcb9ab0f782df6be6582fbd2151724