ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800
authorZhang Jingye <934526987@qq.com>
Mon, 16 Jan 2017 12:10:51 +0000 (20:10 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Feb 2017 16:37:58 +0000 (17:37 +0100)
D7800 has a simular hardware to R7800 and uses dual QCA9980 for both 2.4GHz and 5GHz band.
However there is no proper initialization for them, which causes a kernel panic due to failed firmware loading.

This patch adds d7800 to ath10k caldata extraction list.
I can get two functional wireless bands after making change to it.

Signed-off-by: Zhang Jingye <934526987@qq.com>
target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 625f77f7972787495a31a385cd8e5fc143886499..72c3ae88c2af7d5b20d9c5b2a34367380a58d322 100644 (file)
@@ -52,6 +52,11 @@ case "$FIRMWARE" in
                ath10kcal_extract "radio" 4096 12064
 #              ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -1)
                ;;
+       d7800 |\
+       r7500v2 |\
+       r7800)
+               ath10kcal_extract "art" 4096 12064
+               ;;
        ea8500)
                hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
                ath10kcal_extract "art" 4096 12064
@@ -59,10 +64,6 @@ case "$FIRMWARE" in
        nbg6817)
                ath10kcal_extract "0:ART" 4096 12064
                ;;
-         r7500v2 |\
-         r7800)
-               ath10kcal_extract "art" 4096 12064
-               ;;
        vr2600v)
                ath10kcal_extract "ART" 4096 12064
                ;;
@@ -74,6 +75,11 @@ case "$FIRMWARE" in
                ath10kcal_extract "radio" 20480 12064
 #              ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -2)
                ;;
+       d7800 |\
+       r7500v2 |\
+       r7800)
+               ath10kcal_extract "art" 20480 12064
+               ;;
        ea8500)
                hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
                ath10kcal_extract "art" 20480 12064
@@ -81,10 +87,6 @@ case "$FIRMWARE" in
        nbg6817)
                ath10kcal_extract "0:ART" 20480 12064
                ;;
-        r7500v2 |\
-        r7800)
-               ath10kcal_extract "art" 20480 12064
-               ;;
        vr2600v)
                ath10kcal_extract "ART" 20480 12064
                ;;
index 3482a09b70d778424fc43c02bac6424ce35421c2..0da6e0be6767ebbc4ec4c59bef3180e1876bd91c 100644 (file)
@@ -15,12 +15,14 @@ case "$board" in
        c2600)
                echo $(macaddr_add $(mtd_get_mac_binary default-mac 8)  $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
                ;;
-       ea8500)
-               echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
-               ;;
+       d7800 |\
+       r7500v2 |\      
        r7800)
                echo $(macaddr_add $(mtd_get_mac_binary art 6)  $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
                ;;
+       ea8500)
+               echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
+               ;;
        vr2600v)
                echo $(macaddr_add $(mtd_get_mac_binary default-mac 0)  $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
                ;;