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 <[email protected]>
Signed-off-by: Mathieu Dubois-Briand <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(cherry picked from commit 38860938302e6167b1c890b75e808f3a4ff08805)
---
 .../wpa-supplicant/wpa-supplicant_2.11.bb        | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

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
 }

base-commit: f66b182e2ff431b624dfc3a506d25dc8f1fc6db2
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#242173): 
https://lists.openembedded.org/g/openembedded-core/message/242173
Mute This Topic: https://lists.openembedded.org/mt/120481346/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to