wowlan-udev: add udev rule to enable WoWLAN magic-packet
PATCH v2 1/1 wowlan-udev: add udev rule to enable WoWLAN magic-packet
On some platforms (for example, QCx6490), XO (Crystal Oscillator) shutdown is prevented by Wireless Processor Subsystem votes on interconnect bandwidth and XO unless the WoWLAN magic-packet trigger is enabled. These votes are released only after running:
iw phy0 wowlan enable magic-packet
Add an udev rule to automatically enable WoWLAN magic-packet support when a Wi-Fi PHY is registered. This rule is provided via a dedicated wowlan-udev package and is not enabled by default.
Integrators should include this package only if their platform requires automatic WoWLAN magic-packet enablement.
Signed-off-by Miaoqing Pan <[email protected]>
---
v2: update LICENSE file and set INHIBIT_DEFAULT_DEPS.
--- .../wowlan-udev/files/99-wowlan.rules | 4 ++++ .../wowlan-udev/wowlan-udev.bb | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules create mode 100644 meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb
meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules new file +4 -0
@@ -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" +
meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb new file +14 -0
@@ -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"
Signature · 1 line
2.34.1