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]>
---
 .../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 558065f03a..adb8467786 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb
@@ -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
 }

base-commit: b5c24e1491dcb9ab0f782df6be6582fbd2151724
-- 
2.25.1

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

Reply via email to