ipq806x: read both WG2600HP MAC addresses from flash
authorYanase Yuki <dev@zpc.sakura.ne.jp>
Mon, 16 Mar 2020 08:42:38 +0000 (17:42 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 16 Mar 2020 15:53:47 +0000 (16:53 +0100)
WG2600HP has its WLAN MAC addresses at PRODUCTDATA 0xc and 0x12, so
use them both directly.

Signed-off-by: Yanase Yuki <dev@zpc.sakura.ne.jp>
[commit title/message clarification]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata

index 6013bb100ce657107f6fe88d66c314b1b95fe1a5..bb505d642fee300f5c1cab40df9919d7a453345c 100644 (file)
@@ -19,7 +19,7 @@ case "$FIRMWARE" in
                ;;
        nec,wg2600hp)
                caldata_extract "ART" 0x1000 0x2f20
-               ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary PRODUCTDATA 0xc) +1)
+               ath10k_patch_mac $(mtd_get_mac_binary PRODUCTDATA 0x12)
                ;;
        netgear,d7800 |\
        netgear,r7500v2 |\