From 34958c826915cf864833ed8ba6e5b49d44c6cb41 Mon Sep 17 00:00:00 2001 From: Henryk Heisig Date: Thu, 29 Jun 2017 15:20:31 +0200 Subject: [PATCH] ar71xx: Archer C58/C59/C60 fix qca9886 wireless interface This commit fix 5GHz wireless interface used in Archer C58/C59/C60v1 and set correctly MAC address on this interface. Signed-off-by: Henryk Heisig --- .../base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 6 +++--- .../base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 4 +++- target/linux/ar71xx/image/tp-link.mk | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 66796593c0..d96f40d708 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -56,8 +56,6 @@ case "$FIRMWARE" in ;; archer-c7-v4|\ archer-c25-v1|\ - archer-c59-v1|\ - archer-c60-v1|\ tl-wdr6500-v2) ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2) @@ -141,7 +139,9 @@ case "$FIRMWARE" in ;; "ath10k/pre-cal-pci-0000:00:00.0.bin") case $board in - archer-c58-v1) + archer-c58-v1|\ + archer-c59-v1|\ + archer-c60-v1) ath10kcal_extract "art" 20480 12064 ;; esac diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index 77c835f2fd..0530d595a7 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -12,7 +12,9 @@ PHYNBR=${DEVPATH##*/phy} board=$(board_name) case "$board" in - archer-c58-v1) + archer-c58-v1|\ + archer-c59-v1|\ + archer-c60-v1) echo $(macaddr_add $(mtd_get_mac_binary mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress ;; *) diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk index 868bbdae4e..b7689c2741 100644 --- a/target/linux/ar71xx/image/tp-link.mk +++ b/target/linux/ar71xx/image/tp-link.mk @@ -118,7 +118,7 @@ endef define Device/archer-c58-v1 $(Device/archer-cxx) DEVICE_TITLE := TP-LINK Archer C58 v1 - DEVICE_PACKAGES := kmod-ath10k + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888 BOARDNAME := ARCHER-C58-V1 TPLINK_BOARD_ID := ARCHER-C58-V1 DEVICE_PROFILE := ARCHERC58V1 @@ -130,7 +130,7 @@ endef define Device/archer-c59-v1 $(Device/archer-cxx) DEVICE_TITLE := TP-LINK Archer C59 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888 BOARDNAME := ARCHER-C59-V1 TPLINK_BOARD_ID := ARCHER-C59-V1 DEVICE_PROFILE := ARCHERC59V1 @@ -142,7 +142,7 @@ endef define Device/archer-c60-v1 $(Device/archer-cxx) DEVICE_TITLE := TP-LINK Archer C60 v1 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888 BOARDNAME := ARCHER-C60-V1 TPLINK_BOARD_ID := ARCHER-C60-V1 DEVICE_PROFILE := ARCHERC60V1