Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ramips-mt76x8: add xiaomi-mi-ra75 #346

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions patches/targets-xiaomi-mi-ra75.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From ce33817e5dc71a1b9a1b5fb5ad65eee8dbb8b9b5 Mon Sep 17 00:00:00 2001
From: Felix <[email protected]>
Date: Mon, 25 Dec 2023 00:34:49 +0100
Subject: [PATCH 1/2] ramips-mt76x8: add xiaomi-mi-ra75

---
targets/ramips-mt76x8 | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/targets/ramips-mt76x8 b/targets/ramips-mt76x8
index 1e27ac35f8..3fb4d7ff0e 100644
--- a/targets/ramips-mt76x8
+++ b/targets/ramips-mt76x8
@@ -125,3 +125,7 @@ device('xiaomi-mi-router-4a-100m-international-edition', 'xiaomi_mi-router-4a-10
device('xiaomi-mi-router-4c', 'xiaomi_mi-router-4c', {
factory = false,
})
+
+device('xiaomi-mi-ra75', 'xiaomi_mi-ra75', {
+ factory = false,
+})

From 6b1490bee089e336753d70b8b086c082dbfc22ac Mon Sep 17 00:00:00 2001
From: GoliathLabs <[email protected]>
Date: Mon, 25 Dec 2023 17:51:23 +0100
Subject: [PATCH 2/2] fix: primary mac

---
docs/user/supported_devices.rst | 1 +
package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac | 1 +
2 files changed, 2 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 7d606a67ba..4fcb8213b3 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -505,6 +505,7 @@ ramips-mt76x8

* Xiaomi

+ - Xiaomi Mi AC1200 WLAN Range Extender RA75
- Xiaomi Mi Router 4A (100M Edition)
- Xiaomi Mi Router 4A (100M International Edition)
- Xiaomi Mi Router 4C
45 changes: 45 additions & 0 deletions patches/targets-xiaomi-primary-mac.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
From f1f02aa4ee726a2fd9f41def8097374dee9e3fcf Mon Sep 17 00:00:00 2001
From: GoliathLabs <[email protected]>
Date: Tue, 26 Dec 2023 16:55:36 +0100
Subject: [PATCH] fix: primary mac

---
patches/openwrt/0008-patch-primary-mac.patch | 29 ++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 patches/openwrt/0008-patch-primary-mac.patch

diff --git a/patches/openwrt/0008-patch-primary-mac.patch b/patches/openwrt/0008-patch-primary-mac.patch
new file mode 100644
index 0000000000..2d0679bb24
--- /dev/null
+++ b/patches/openwrt/0008-patch-primary-mac.patch
@@ -0,0 +1,29 @@
+From 034d9f7a1bb62338284935e0df3c794fa07143cf Mon Sep 17 00:00:00 2001
+From: David Bauer <[email protected]>
+Date: Tue, 26 Dec 2023 01:17:18 +0100
+Subject: [PATCH] ramips: fix label-mac for Xiaomi RA75
+
+The label-mac of the repeater is the address used on the 2.4 GHz radio,
+not the ethernet MAC.
+
+Signed-off-by: David Bauer <[email protected]>
+---
+ target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts
+index 8859038c30..ddbb8b20bf 100644
+--- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts
++++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts
+@@ -10,7 +10,7 @@
+ led-failsafe = &led_system_amber;
+ led-running = &led_system_blue;
+ led-upgrade = &led_system_amber;
+- label-mac-device = &ethernet;
++ label-mac-device = &wmac;
+ };
+
+ leds {
+--
+2.43.0
+