ramips: fix HiWiFi HC5962 switch configuration
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Thu, 16 Jan 2020 16:24:43 +0000 (00:24 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 21 Jan 2020 12:59:44 +0000 (13:59 +0100)
HC5962 has only 3 LAN ports, switch port 0 is unused

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
(backported from commit 68f49df31507454f86b72a5c1e250505176baed7)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/base-files/etc/board.d/02_network

index 4a58f61b925902725705a99dba8d370cfeb8b91a..50d3a89bd88478b6077cf4f0aacde26901f869b4 100755 (executable)
@@ -88,7 +88,6 @@ ramips_setup_interfaces()
        ew1200|\
        firewrt|\
        hc5661a|\
-       hc5962|\
        hlk-rm04|\
        k2p|\
        kn|\
@@ -285,6 +284,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
                ;;
+       hc5962)
+               ucidef_add_switch "switch0" \
+                       "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
+               ;;
        kn_rf)
                ucidef_add_switch "switch0" \
                        "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"