diff options
| author | Miaoqing Pan <miaoqing.pan@oss.qualcomm.com> | 2026-03-04 13:38:10 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-03-04 00:01:38 -0800 |
| commit | 0bc67b61ca52e85a5a882d809ba0c98d21cceac8 (patch) | |
| tree | f47cd1025116f672c19e860cb4ce7aedce3a34bd | |
| parent | 6bce0aedabb6847915521c65401659abd733dad3 (diff) | |
| download | meta-openembedded-0bc67b61ca52e85a5a882d809ba0c98d21cceac8.tar.gz | |
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 <miaoqing.pan@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules | 4 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb | 14 |
2 files changed, 18 insertions, 0 deletions
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 @@ | |||
| 1 | # Enable WoWLAN when Wi-Fi PHY is registered | ||
| 2 | ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy*", \ | ||
| 3 | RUN+="/usr/sbin/iw %k wowlan enable magic-packet" | ||
| 4 | |||
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 @@ | |||
| 1 | SUMMARY = "Enable WoWLAN via udev on Wi-Fi PHY registration" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 4 | |||
| 5 | SRC_URI = "file://99-wowlan.rules" | ||
| 6 | |||
| 7 | do_install() { | ||
| 8 | install -d ${D}${sysconfdir}/udev/rules.d | ||
| 9 | install -m 0644 ${UNPACKDIR}/99-wowlan.rules \ | ||
| 10 | ${D}${sysconfdir}/udev/rules.d/ | ||
| 11 | } | ||
| 12 | |||
| 13 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 14 | RDEPENDS:${PN} = "iw udev" | ||
