diff --git a/meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules b/meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules new file mode 100644 index 0000000000..ba41eef896 --- /dev/null +++ b/meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules @@ -0,0 +1,4 @@ +# Enable WoWLAN when Wi-Fi PHY is registered +ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy*", \ + RUN+="/usr/sbin/iw %k wowlan enable magic-packet" + diff --git a/meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb b/meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb new file mode 100644 index 0000000000..857bbc3f95 --- /dev/null +++ b/meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb @@ -0,0 +1,14 @@ +SUMMARY = "Enable WoWLAN via udev on Wi-Fi PHY registration" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SRC_URI = "file://99-wowlan.rules" + +do_install() { + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0644 ${UNPACKDIR}/99-wowlan.rules \ + ${D}${sysconfdir}/udev/rules.d/ +} + +INHIBIT_DEFAULT_DEPS = "1" +RDEPENDS:${PN} = "iw udev"