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 <isaac.hermida@digi.com>
This commit is contained in:
parent
6a1c8c27a9
commit
4da4eb7bdd
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue