]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
qualcommax: migrate wifi configuration (ath10k) device paths for 6.12 kernel 19479/head
authorAgustin Lorenzo <agustin.lorenzo@thinco.es>
Sun, 20 Jul 2025 21:51:50 +0000 (23:51 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 27 Aug 2025 07:50:02 +0000 (09:50 +0200)
The device tree PCIe host node name has been changed in the new
6.12 kernel[1]. Hence we have to update the wifi device path to
make sure it can work properly.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=07299ba2e7d98045e6b522f7c5b97f402b15bc82

Signed-off-by: Agustin Lorenzo <agustin.lorenzo@thinco.es>
Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/19479
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate

index 9e8879905a796f260759412b5c9f14471f0b9a83..c08e10bf0702991e6b52f95cbf1a3c16f1783e45 100644 (file)
@@ -29,11 +29,14 @@ check_path()
        config_get path "$config" path
 
        to=${path/soc\//soc@0\/}
+       to=${to/pci\//pcie\/}
 
        # Checks if kernel version is less than 6.6.0, if it is and the path is using the new format,
        # then path should be migrated to the old format. This would allow users on platforms with two partitions,
        # to test 6.1 and 6.6.
-       [ "$(get_linux_version)" -lt "606000" ] && to=${path/soc@0\//soc\/}
+       [ "$(get_linux_version)" -lt "606000" ] && to=${to/soc@0\//soc\/}
+
+       [ "$(get_linux_version)" -lt "612000" ] && to=${to/pcie\//pci\/}
 
        [ "$path" = "$to" ] || do_migrate_radio "$config" "$path" "$to"
 }