diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-10-27 14:40:37 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-10-27 18:03:56 +0100 |
commit | b288c56e1e0b4a45579169906845c90b61e5ace4 (patch) | |
tree | fc1a85950d44fdc2c79296d7e720bbe64eb49cb7 /target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | |
parent | 62db255543c8fb5d1787caf36c6c7c9c51db71cd (diff) | |
download | upstream-b288c56e1e0b4a45579169906845c90b61e5ace4.tar.gz upstream-b288c56e1e0b4a45579169906845c90b61e5ace4.tar.bz2 upstream-b288c56e1e0b4a45579169906845c90b61e5ace4.zip |
ath79: move base-files for ZyXEL NBG6716
Due to rebase of the base-files split patch after adding support
for the ZyXEL NBG6716, its base-files were added to the generic
subtarget, although the device belongs to the nand subtarget.
This moves the definitions to their proper locations.
Fixes: 0130022baec0 ("ath79: split base-files into subtargets")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[improve commit message, rebase]
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata')
-rw-r--r-- | target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata new file mode 100644 index 0000000000..75fdd42cdd --- /dev/null +++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -0,0 +1,22 @@ +#!/bin/sh + +[ -e /lib/firmware/$FIRMWARE ] && exit 0 + +. /lib/functions/caldata.sh +. /lib/functions/k2t.sh + +board=$(board_name) + +case "$FIRMWARE" in +"ath10k/cal-pci-0000:00:00.0.bin") + case $board in + zyxel,nbg6716) + caldata_extract "art" 0x5000 0x844 + ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1) + ;; + esac + ;; +*) + exit 1 + ;; +esac |