;;
edgecore,ecw5410)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
- if [ -b "$(find_mtd_part 0:art)" ]; then
- ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:art" 0x6)"
- ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:art" 0x0)"
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:ART" 0x6)"
- ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:ART" 0x0)"
- fi
+ ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:art" 0x6)"
+ ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:art" 0x0)"
;;
linksys,ea7500-v1)
hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
;;
zyxel,nbg6817)
hw_mac_addr=$(mtd_get_mac_ascii 0:appsblenv ethaddr)
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- [ -n "$hw_mac_addr" ] || \
- hw_mac_addr=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 2)"
caldata_extract "0:ART" 0x1000 0x2f20
;;
asrock,g10)
- if [ -b "$(find_mtd_part 0:art)" ]; then
- caldata_extract "0:art" 0x1000 0x2f20
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- caldata_extract "0:ART" 0x1000 0x2f20
- fi
+ caldata_extract "0:art" 0x1000 0x2f20
;;
buffalo,wxr-2533dhp)
caldata_extract "ART" 0x1000 0x2f20
;;
edgecore,ecw5410)
- if [ -b "$(find_mtd_part 0:art)" ]; then
- caldata_extract "0:art" 0x1000 0x2f20
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- caldata_extract "0:ART" 0x1000 0x2f20
- fi
+ caldata_extract "0:art" 0x1000 0x2f20
;;
linksys,ea7500-v1 |\
linksys,ea8500)
caldata_extract "ART" 0x1000 0x2f20
;;
zyxel,nbg6817)
- if [ -b "$(find_mtd_part 0:art)" ]; then
- caldata_extract "0:art" 0x1000 0x2f20
- ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii 0:appsblenv ethaddr) 1)
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- caldata_extract "0:ART" 0x1000 0x2f20
- ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii 0:APPSBLENV ethaddr) 1)
- fi
+ caldata_extract "0:art" 0x1000 0x2f20
+ ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii 0:appsblenv ethaddr) 1)
;;
esac
;;
caldata_extract "0:ART" 0x5000 0x2f20
;;
asrock,g10)
- if [ -b "$(find_mtd_part 0:art)" ]; then
- caldata_extract "0:art" 0x5000 0x2f20
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- caldata_extract "0:ART" 0x5000 0x2f20
- fi
+ caldata_extract "0:art" 0x5000 0x2f20
;;
buffalo,wxr-2533dhp)
caldata_extract "ART" 0x5000 0x2f20
caldata_extract "ART" 0x5000 0x2f20
;;
zyxel,nbg6817)
- if [ -b "$(find_mtd_part 0:art)" ]; then
- caldata_extract "0:art" 0x5000 0x2f20
- ath10k_patch_mac $(mtd_get_mac_ascii 0:appsblenv ethaddr)
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- caldata_extract "0:ART" 0x5000 0x2f20
- ath10k_patch_mac $(mtd_get_mac_ascii 0:APPSBLENV ethaddr)
- fi
+ caldata_extract "0:art" 0x5000 0x2f20
+ ath10k_patch_mac $(mtd_get_mac_ascii 0:appsblenv ethaddr)
;;
esac
;;
"ath10k/pre-cal-pci-0002:01:00.0.bin")
case $board in
edgecore,ecw5410)
- if [ -b "$(find_mtd_part 0:art)" ]; then
- caldata_extract "0:art" 0x5000 0x2f20
- else
- # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
- caldata_extract "0:ART" 0x5000 0x2f20
- fi
+ caldata_extract "0:art" 0x5000 0x2f20
;;
esac
;;