From 4da4eb7bddcab43e8f9aaa86573791660930f16c Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Fri, 25 Apr 2025 15:42:35 +0200 Subject: [PATCH] udev-extraconf: skip actions for additional wifi interfaces When a WiFi card adds additional interfaces (for AP or WiFi direct), it 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. https://onedigi.atlassian.net/browse/DEL-9600 Signed-off-by: Isaac Hermida --- .../recipes-core/udev/udev-extraconf_1.1.bbappend | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 58f5fe13b..32f879806 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 @@ -11,14 +11,10 @@ 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 -} +WLAN_AP_INTERFACE = "wlan1" +WLAN_AP_INTERFACE:ccimx9 = "uap0" do_install:append() { - if [ -n "${@bb.utils.contains('IMAGE_FEATURES', 'read-only-rootfs', '1', '', d)}" ]; then install -d ${D}/mnt install -d ${D}/mnt/linux @@ -61,6 +57,10 @@ do_install:append() { # Fix mount.sh to force to find files in /tmp as symlink sed -i -e 's|find /tmp|find -L /tmp|g' ${D}${sysconfdir}/udev/scripts/mount.sh + + # When a WiFi driver adds AP or P2P (or bridge with AP), it generates udev triggers that lead the wifi card to fail. + # The grep argument is the list of ifaces to skip, in this case the AP, P2P, and bridge interfaces. + sed -i -e 's|grep -q wifi|grep -qE "${WLAN_AP_INTERFACE}\|${WLAN_P2P_INTERFACE}\|br0"|g' ${D}${sysconfdir}/udev/scripts/network.sh } do_install:append:ccmp1() {