diff options
3 files changed, 36 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd-example/hostapd-example.bb b/recipes-connectivity/hostapd-example/hostapd-example.bb index f3d0036d..f40abf68 100644 --- a/recipes-connectivity/hostapd-example/hostapd-example.bb +++ b/recipes-connectivity/hostapd-example/hostapd-example.bb @@ -11,8 +11,10 @@ S = "${UNPACKDIR}" SRC_URI = " \ file://enable-wifi.service \ file://hostapd-example.service \ + file://hostapd-example-wpa3.service \ file://hostapd-example.network \ file://hostapd-tdx-demo-img.conf \ + file://hostapd-tdx-demo-img-wpa3.conf \ " inherit allarch systemd @@ -25,13 +27,17 @@ do_install() { install -m 0644 enable-wifi.service ${D}${systemd_unitdir}/system/ install -m 0644 hostapd-example.network ${D}${systemd_unitdir}/network/ install -m 0644 hostapd-example.service ${D}${systemd_unitdir}/system/ + install -m 0644 hostapd-example-wpa3.service ${D}${systemd_unitdir}/system/ install -m 0644 hostapd-tdx-demo-img.conf ${D}${sysconfdir}/ + install -m 0644 hostapd-tdx-demo-img-wpa3.conf ${D}${sysconfdir}/ sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/hostapd-example.service + sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/hostapd-example-wpa3.service } FILES:${PN} += " \ ${systemd_unitdir}/system/* \ ${systemd_unitdir}/network/hostapd-example.network \ ${sysconfdir}/hostapd-tdx-demo-img.conf \ + ${sysconfdir}/hostapd-tdx-demo-img-wpa3.conf \ " diff --git a/recipes-connectivity/hostapd-example/hostapd-example/hostapd-example-wpa3.service b/recipes-connectivity/hostapd-example/hostapd-example/hostapd-example-wpa3.service new file mode 100644 index 00000000..1971a5fd --- /dev/null +++ b/recipes-connectivity/hostapd-example/hostapd-example/hostapd-example-wpa3.service @@ -0,0 +1,11 @@ +[Unit] +Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator +Requires=enable-wifi.service + +[Service] +Type=forking +PIDFile=/run/hostapd-wpa3.pid +ExecStart=@SBINDIR@/hostapd @SYSCONFDIR@/hostapd-tdx-demo-img-wpa3.conf -P /run/hostapd-wpa3.pid -B + +[Install] +WantedBy=multi-user.target diff --git a/recipes-connectivity/hostapd-example/hostapd-example/hostapd-tdx-demo-img-wpa3.conf b/recipes-connectivity/hostapd-example/hostapd-example/hostapd-tdx-demo-img-wpa3.conf new file mode 100644 index 00000000..728fd584 --- /dev/null +++ b/recipes-connectivity/hostapd-example/hostapd-example/hostapd-tdx-demo-img-wpa3.conf @@ -0,0 +1,19 @@ +interface=uap0 +ssid=testwifi +hw_mode=g +channel=9 +ieee80211n=1 +own_ip_addr=192.168.8.1 + +# Mixed WPA2/WPA3 mode +wpa=2 +wpa_key_mgmt=WPA-PSK SAE +wpa_passphrase=testwifipw +rsn_pairwise=CCMP + +# Management Frame Protection (MFP) +# 0=disabled +# 1=optional (for WPA2 clients) +# 2=required +ieee80211w=1 +sae_require_mfp=1 |