From fb0a8393ed0c487eb1edde48fa8c9d4536759159 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Tue, 21 Jan 2025 12:21:36 +0100 Subject: [PATCH] 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 --- .../recipes-core/udev/udev-extraconf_1.1.bbappend | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-digi-arm/recipes-core/udev/udev-extraconf_1.1.bbappend b/meta-digi-arm/recipes-core/udev/udev-extraconf_1.1.bbappend index ff0833f43..090a18c64 100644 --- a/meta-digi-arm/recipes-core/udev/udev-extraconf_1.1.bbappend +++ b/meta-digi-arm/recipes-core/udev/udev-extraconf_1.1.bbappend @@ -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