From: Chukun Pan Date: Sat, 7 Dec 2024 15:16:15 +0000 (+0800) Subject: qualcommax: ipq60xx: fixes base-files typo X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d6be0a203910795ab964fd324da1ca54371643b8;p=openwrt%2Fstaging%2Fnbd.git qualcommax: ipq60xx: fixes base-files typo * fix caldata file name * fix bootcount file permission Fixes: 9c55866 ("qualcommax: ipq60xx: add Linksys MR7350 support") Signed-off-by: Chukun Pan Link: https://github.com/openwrt/openwrt/pull/17230 Signed-off-by: Robert Marko --- 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 index a5e843ee7b..0000000000 --- a/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11-caldata +++ /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 index 0000000000..a5e843ee7b --- /dev/null +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata @@ -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 diff --git a/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount b/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount old mode 100644 new mode 100755 index e8ff90122b..fbe245d988 --- a/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount @@ -12,4 +12,3 @@ boot() { ;; esac } -