diff mbox series

[wrynose] wpa-supplicant: add PACKAGECONFIG controls for suiteb, wnm, and mbo

Message ID 20260728090159.3864155-1-hangtian.zhu@oss.qualcomm.com
State New
Headers show
Series [wrynose] wpa-supplicant: add PACKAGECONFIG controls for suiteb, wnm, and mbo | expand

Commit Message

Hangtian Zhu July 28, 2026, 9:01 a.m. UTC
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 38860938302e6167b1c890b75e808f3a4ff08805)
---
 .../wpa-supplicant/wpa-supplicant_2.11.bb        | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)


base-commit: f66b182e2ff431b624dfc3a506d25dc8f1fc6db2
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb
index 7c7a8bd9c1..d3e4352022 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb
@@ -31,6 +31,9 @@  inherit pkgconfig systemd
 PACKAGECONFIG ?= "openssl"
 PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt"
 PACKAGECONFIG[openssl] = ",,openssl"
+PACKAGECONFIG[suiteb] = ",,"
+PACKAGECONFIG[wnm] = ",,"
+PACKAGECONFIG[mbo] = ",,"
 
 CVE_PRODUCT = "wpa_supplicant"
 
@@ -52,6 +55,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
 }