mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 03:40:52 +04:00
wifi-scripts: ath12k trigger: also match the ath12k_wifi7_pci driver
11-ath12k-trigger restarts an ath12k radio whose setup failed because the device appeared after the wireless configuration was applied. It only acts on devices bound to ath12k_pci, but since ath12k was split into a common module and ath12k_wifi7, the PCI driver is named ath12k_wifi7_pci, so on current kernels the script never acts. Match both names. Seen on an Arista C-460 (IPQ9574, three QCN9224 on PCIe), where the new match finds the three ath12k radios and leaves the ath11k one alone. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Christopher Griffin <christophergriffin05@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26636 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
1 parent
986dd058ff
commit
f48fd61568
2 files changed
+2
-2
No files matched your search
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=wifi-scripts
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Restart ath12k radios that take long time to initialize on boot
|
||||
|
||||
[ "${ACTION}" = "add" ] || exit 0
|
||||
[ $(grep -c DRIVER=ath12k_pci /sys/$DEVPATH/device/uevent) -gt 0 ] || exit 0
|
||||
grep -qE "^DRIVER=ath12k(_wifi7)?_pci$" /sys/$DEVPATH/device/uevent || exit 0
|
||||
|
||||
. /usr/share/libubox/jshn.sh
|
||||
|
||||
|
||||
Reference in new issue
Block a user