forked from Ivasoft/openwrt
ar71xx: fix Sitecom WLR-8100 support
This patch fixes Sitecom WLR-8100: - mtd layout - LAN and WAN MAC address setup - 2.4 GHz Wi-Fi MAC address setup - 5 GHz Wi-Fi support (calibration data, MAC address setup, missing ath10k-* packages) Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com> [squashed commits, fixed whitespace issues, reworded commit message] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
committed by
Piotr Dymacz
parent
ec141c1f3d
commit
a85db951db
@@ -563,6 +563,10 @@ ar71xx_setup_macs()
|
||||
mynet-n750)
|
||||
wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
|
||||
;;
|
||||
wlr8100)
|
||||
lan_mac=$(mtd_get_mac_ascii u-boot-env "ethaddr")
|
||||
wan_mac=$(mtd_get_mac_ascii u-boot-env "wanaddr")
|
||||
;;
|
||||
wpj344|\
|
||||
wpj558)
|
||||
wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
|
||||
|
||||
@@ -94,6 +94,10 @@ case "$FIRMWARE" in
|
||||
rambutan)
|
||||
ath9k_eeprom_extract "art" 4096 2048
|
||||
;;
|
||||
wlr8100)
|
||||
ath9k_eeprom_extract "art" 4096 2048
|
||||
ath9k_patch_firmware_mac $(mtd_get_mac_ascii u-boot-env "ethaddr")
|
||||
;;
|
||||
z1)
|
||||
. /lib/upgrade/nand.sh
|
||||
|
||||
|
||||
@@ -139,6 +139,10 @@ case "$FIRMWARE" in
|
||||
rb-962uigs-5hact2hnt)
|
||||
ath10kcal_from_file "/sys/firmware/routerboot/ext_wlan_data" 20480 2116
|
||||
;;
|
||||
wlr8100)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"ath10k/pre-cal-pci-0000:00:00.0.bin")
|
||||
|
||||
Reference in New Issue
Block a user