mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
ipq807x_v5.4: change RAP630W-312G and RAP63XC vendor name
Fixes: WIFI-14471 Signed-off-by: Wingate Chi <wingate.chi@cybertan.com.tw>
This commit is contained in:
committed by
John Crispin
parent
486cc7983a
commit
076bc0712e
@@ -1,19 +1,19 @@
|
||||
From ba018e2a24d85b7eabe0ed5a43d2c0a5ffccac7c Mon Sep 17 00:00:00 2001
|
||||
From: "wingate.chi" <wingate.chi@cybertan.com.tw>
|
||||
From: "wingate.chi" <wingate.chi@sonicfi.com.tw>
|
||||
Date: Mon, 9 Dec 2024 03:06:26 +0000
|
||||
Subject: [PATCH] rampis: add mt7621 cybertan rap63xc-211g support
|
||||
Subject: [PATCH] rampis: add mt7621 sonicfi rap63xc-211g support
|
||||
|
||||
Signed-off-by: wingate.chi <wingate.chi@cybertan.com.tw>
|
||||
Signed-off-by: wingate.chi <wingate.chi@sonicfi.com.tw>
|
||||
---
|
||||
package/boot/uboot-envtools/files/ramips | 1 +
|
||||
.../dts/mt7621_cybertan_rap63xc-211g.dts | 204 ++++++++++++++++++
|
||||
.../dts/mt7621_sonicfi_rap63xc-211g.dts | 204 ++++++++++++++++++
|
||||
target/linux/ramips/image/mt7621.mk | 9 +
|
||||
.../mt7621/base-files/etc/board.d/01_leds | 6 +
|
||||
.../mt7621/base-files/etc/board.d/02_network | 6 +
|
||||
.../etc/hotplug.d/ieee80211/10_fix_wifi_mac | 5 +
|
||||
6 files changed, 231 insertions(+)
|
||||
mode change 100644 => 100755 package/boot/uboot-envtools/files/ramips
|
||||
create mode 100755 target/linux/ramips/dts/mt7621_cybertan_rap63xc-211g.dts
|
||||
create mode 100755 target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts
|
||||
mode change 100644 => 100755 target/linux/ramips/image/mt7621.mk
|
||||
mode change 100644 => 100755 target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
|
||||
mode change 100644 => 100755 target/linux/ramips/mt7621/base-files/etc/board.d/02_network
|
||||
@@ -29,15 +29,15 @@ index 8c7ce71c49..522bf03254
|
||||
allnet,all0256n-4m|\
|
||||
allnet,all0256n-8m|\
|
||||
allnet,all5002|\
|
||||
+cybertan,rap63xc-211g|\
|
||||
+sonicfi,rap63xc-211g|\
|
||||
yuncore,ax820)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
||||
;;
|
||||
diff --git a/target/linux/ramips/dts/mt7621_cybertan_rap63xc-211g.dts b/target/linux/ramips/dts/mt7621_cybertan_rap63xc-211g.dts
|
||||
diff --git a/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts b/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts
|
||||
new file mode 100755
|
||||
index 0000000000..149277a825
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ramips/dts/mt7621_cybertan_rap63xc-211g.dts
|
||||
+++ b/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts
|
||||
@@ -0,0 +1,204 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+
|
||||
@@ -48,8 +48,8 @@ index 0000000000..149277a825
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "cybertan,rap63xc-211g", "mediatek,mt7621-soc";
|
||||
+ model = "CyberTan RAP63XC-211G";
|
||||
+ compatible = "sonicfi,rap63xc-211g", "mediatek,mt7621-soc";
|
||||
+ model = "sonicfi RAP63XC-211G";
|
||||
+
|
||||
+ aliases {
|
||||
+ led-boot = &led_system;
|
||||
@@ -253,14 +253,14 @@ index 8790a2fa50..1a1959bdc4
|
||||
endef
|
||||
TARGET_DEVICES += cudy_x6-v2
|
||||
|
||||
+define Device/cybertan_rap63xc-211g
|
||||
+define Device/sonicfi_rap63xc-211g
|
||||
+ $(Device/dsa-migration)
|
||||
+ IMAGE_SIZE := 15808k
|
||||
+ DEVICE_VENDOR := CyberTan
|
||||
+ DEVICE_VENDOR := sonicfi
|
||||
+ DEVICE_MODEL := RAP63XC-211G
|
||||
+ DEVICE_PACKAGES := kmod-mt7915-firmware uboot-envtools
|
||||
+endef
|
||||
+TARGET_DEVICES += cybertan_rap63xc-211g
|
||||
+TARGET_DEVICES += sonicfi_rap63xc-211g
|
||||
+
|
||||
define Device/dlink_dap-1620-b1
|
||||
DEVICE_VENDOR := D-Link
|
||||
@@ -275,7 +275,7 @@ index 3ceac60434..84cc404019
|
||||
ucidef_set_led_netdev "lan4" "lan4" "green:lan4" "lan4"
|
||||
ucidef_set_led_netdev "wan" "wan" "green:wan" "wan"
|
||||
;;
|
||||
+cybertan,rap63xc-211g)
|
||||
+sonicfi,rap63xc-211g)
|
||||
+ ucidef_set_led_netdev "wifi2g" "Wifi2G" "wlan2g" "wlan0" "link"
|
||||
+ ucidef_set_led_netdev "wifi5g" "Wifi5G" "wlan5g" "wlan1" "link"
|
||||
+ ucidef_set_led_netdev "lan" "LAN" "green:lan" "lan"
|
||||
@@ -294,7 +294,7 @@ index 0f6b7fd526..d3944a47c4
|
||||
uci add_list firewall.@zone[1].network='eth_om'
|
||||
;;
|
||||
cudy,m1800|\
|
||||
+ cybertan,rap63xc-211g|\
|
||||
+ sonicfi,rap63xc-211g|\
|
||||
yuncore,ax820|\
|
||||
zyxel,nt7101)
|
||||
ucidef_set_interfaces_lan_wan "lan" "wan"
|
||||
@@ -302,7 +302,7 @@ index 0f6b7fd526..d3944a47c4
|
||||
lan_mac=$wan_mac
|
||||
label_mac=$wan_mac
|
||||
;;
|
||||
+ cybertan,rap63xc-211g)
|
||||
+ sonicfi,rap63xc-211g)
|
||||
+ wan_mac=$(mtd_get_mac_binary Factory 0x4)
|
||||
+ lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||
+ label_mac=$wan_mac
|
||||
@@ -320,7 +320,7 @@ index d5bd50fdf7..7ead3274b0
|
||||
[ "$PHYNBR" = "1" ] && \
|
||||
macaddr_setbit_la "$(macaddr_add $hw_mac_addr 0x100000)" > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
+ cybertan,rap63xc-211g)
|
||||
+ sonicfi,rap63xc-211g)
|
||||
+ hw_mac_addr="$(mtd_get_mac_binary Factory 0x4)"
|
||||
+ [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
|
||||
+ [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 3 > /sys${DEVPATH}/macaddress
|
||||
Reference in New Issue
Block a user