Skip to content

Commit 21059cb

Browse files
AgustinLorenzorobimarko
authored andcommitted
qualcommax: migrate wifi configuration (ath10k) device paths for 6.12 kernel
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: openwrt#19479 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 44f7617 commit 21059cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211

target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ check_path()
2929
config_get path "$config" path
3030

3131
to=${path/soc\//soc@0\/}
32+
to=${to/pci\//pcie\/}
3233

3334
# Checks if kernel version is less than 6.6.0, if it is and the path is using the new format,
3435
# then path should be migrated to the old format. This would allow users on platforms with two partitions,
3536
# to test 6.1 and 6.6.
36-
[ "$(get_linux_version)" -lt "606000" ] && to=${path/soc@0\//soc\/}
37+
[ "$(get_linux_version)" -lt "606000" ] && to=${to/soc@0\//soc\/}
38+
39+
[ "$(get_linux_version)" -lt "612000" ] && to=${to/pcie\//pci\/}
3740

3841
[ "$path" = "$to" ] || do_migrate_radio "$config" "$path" "$to"
3942
}

0 commit comments

Comments
 (0)