qualcommax: ipq60xx: fixes base-files typo
authorChukun Pan <amadeus@jmu.edu.cn>
Sat, 7 Dec 2024 15:16:15 +0000 (23:16 +0800)
committerRobert Marko <robimarko@gmail.com>
Wed, 11 Dec 2024 16:02:14 +0000 (17:02 +0100)
 * fix caldata file name
 * fix bootcount file permission

Fixes: 9c55866 ("qualcommax: ipq60xx: add Linksys MR7350 support")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/17230
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11-caldata [deleted file]
target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata [new file with mode: 0644]
target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount [changed mode: 0644->0755]

diff --git a/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11-caldata b/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11-caldata
deleted file mode 100644 (file)
index a5e843e..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-[ -e /lib/firmware/$FIRMWARE ] && exit 0
-
-. /lib/functions/caldata.sh
-
-board=$(board_name)
-
-case "$FIRMWARE" in
-"ath11k/IPQ6018/hw1.0/cal-ahb-c000000.wifi.bin")
-       case "$board" in
-       8devices,mango-dvk)
-               caldata_extract "0:ART" 0x1000 0x20000
-               ;;
-       cambiumnetworks,xe3-4)
-               caldata_extract "0:ART" 0x1000 0x10000
-               ;;
-       linksys,mr7350|\
-       netgear,wax214)
-               caldata_extract "0:art" 0x1000 0x10000
-               ;;
-       qihoo,360v6)
-               caldata_extract "0:art" 0x1000 0x10000
-               label_mac=$(mtd_get_mac_ascii factory lanMac)
-               ath11k_patch_mac $(macaddr_add $label_mac 3) 0
-               ath11k_patch_mac $(macaddr_add $label_mac 2) 1
-               ath11k_set_macflag
-               ;;
-       yuncore,fap650)
-               caldata_extract "0:art" 0x1000 0x20000
-               ;;
-       esac
-       ;;
-"ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin")
-       case "$board" in
-       cambiumnetworks,xe3-4)
-               caldata_extract "0:ART" 0x26800 0x20000
-               ;;
-       esac
-       ;;
-*)
-       exit 1
-       ;;
-esac
diff --git a/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata b/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
new file mode 100644 (file)
index 0000000..a5e843e
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
+
+. /lib/functions/caldata.sh
+
+board=$(board_name)
+
+case "$FIRMWARE" in
+"ath11k/IPQ6018/hw1.0/cal-ahb-c000000.wifi.bin")
+       case "$board" in
+       8devices,mango-dvk)
+               caldata_extract "0:ART" 0x1000 0x20000
+               ;;
+       cambiumnetworks,xe3-4)
+               caldata_extract "0:ART" 0x1000 0x10000
+               ;;
+       linksys,mr7350|\
+       netgear,wax214)
+               caldata_extract "0:art" 0x1000 0x10000
+               ;;
+       qihoo,360v6)
+               caldata_extract "0:art" 0x1000 0x10000
+               label_mac=$(mtd_get_mac_ascii factory lanMac)
+               ath11k_patch_mac $(macaddr_add $label_mac 3) 0
+               ath11k_patch_mac $(macaddr_add $label_mac 2) 1
+               ath11k_set_macflag
+               ;;
+       yuncore,fap650)
+               caldata_extract "0:art" 0x1000 0x20000
+               ;;
+       esac
+       ;;
+"ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin")
+       case "$board" in
+       cambiumnetworks,xe3-4)
+               caldata_extract "0:ART" 0x26800 0x20000
+               ;;
+       esac
+       ;;
+*)
+       exit 1
+       ;;
+esac