udev-extraconf: cc9/iw61x: skip actions for wifi card

The IW61x, when enabled as AP or P2P (or bridge with AP), generates udev
triggers that lead the wifi card to fail.
Ignore those events.
The reason of this new behavior is due to poky commit 1e8b49999ad8,
"udev-extraconf: fix network.sh script did not configure hotplugged interfaces"

https://onedigi.atlassian.net/browse/DEL-9465

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2025-01-21 12:21:36 +01:00
parent 4adb7ae271
commit fb0a8393ed
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright (C) 2013-2022, Digi International Inc.
# Copyright (C) 2013-2025, Digi International Inc.
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
@ -11,6 +11,12 @@ SRC_URI:append:ccmp1 = " \
file://99-ext-rtc-wakeup.rules \
"
do_install:append:ccimx9() {
# The IW61x, when enabled as AP or P2P (or bridge with AP), generates udev triggers that lead the wifi card to fail.
# The text to replace is 'echo "$INTERFACE" | grep -q wifi && exit 0'.
sed -i -e 's|grep -q wifi|grep -q "uap0\|wfd0\|br0"|g' ${D}${sysconfdir}/udev/scripts/network.sh
}
do_install:append() {
if [ -n "${@bb.utils.contains('IMAGE_FEATURES', 'read-only-rootfs', '1', '', d)}" ]; then