Skip to content

Commit 21f43ef

Browse files
maurerleFFAC
authored and
FFAC
committed
fixes for wax206
fix mt7622 wifi issues add netgear-eax12
1 parent 6794511 commit 21f43ef

File tree

3 files changed

+89
-2
lines changed

3 files changed

+89
-2
lines changed

patches/mt7622-3430.patch

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 8c930c2ec6782d05f2b464a7cc54a0957177dd4d Mon Sep 17 00:00:00 2001
2+
From: Florian Maurer <[email protected]>
3+
Date: Wed, 22 Jan 2025 22:12:29 +0100
4+
Subject: [PATCH] gluon-core: this fixes the mediatek-mt7622 issue with
5+
renaming wireless phys
6+
7+
Signed-off-by: Florian Maurer <[email protected]>
8+
---
9+
package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua | 6 +++++-
10+
1 file changed, 5 insertions(+), 1 deletion(-)
11+
12+
diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
13+
index 01379a1d11..bce6c5d089 100644
14+
--- a/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
15+
+++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
16+
@@ -9,7 +9,11 @@ local iwinfo = require 'iwinfo'
17+
local M = {}
18+
19+
function M.find_phy(config)
20+
- return iwinfo.nl80211.phyname(config['.name'])
21+
+ local phyname = iwinfo.nl80211.phyname(config['.name'])
22+
+ if not phyname then
23+
+ phyname = iwinfo.nl80211.phyname(config['.name']:gsub("radio", "phy"))
24+
+ end
25+
+ return phyname
26+
end
27+
28+
local function get_addresses(radio)

patches/targets-ramips-mt7621.patch

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
diff --git a/targets/ramips-mt7621 b/targets/ramips-mt7621
2-
index 10c9d19f..fc9faf36 100644
2+
index 10c9d19f..b9e96dbc 100644
33
--- a/targets/ramips-mt7621
44
+++ b/targets/ramips-mt7621
5-
@@ -105,6 +105,8 @@ device('tp-link-re500-v1', 'tplink_re500-v1')
5+
@@ -71,6 +71,10 @@ device('netgear-ex6150', 'netgear_ex6150', {
6+
factory_ext = '.chk',
7+
})
8+
9+
+device('netgear-eax12', 'netgear_eax12', {
10+
+ factory_ext = '.img',
11+
+})
12+
+
13+
device('netgear-r6220', 'netgear_r6220', {
14+
factory_ext = '.img',
15+
})
16+
@@ -105,6 +109,8 @@ device('tp-link-re500-v1', 'tplink_re500-v1')
617

718
device('tp-link-re650-v1', 'tplink_re650-v1')
819

patches/wax206-fixes.patch

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
diff --git a/patches/openwrt/17694.patch b/patches/openwrt/17694.patch
2+
new file mode 100644
3+
index 00000000..34277609
4+
--- /dev/null
5+
+++ b/patches/openwrt/17694.patch
6+
@@ -0,0 +1,42 @@
7+
+From 1ac8ce7778e36f71e93b8ca138bead81caef03ab Mon Sep 17 00:00:00 2001
8+
+From: Florian Maurer <[email protected]>
9+
+Date: Wed, 22 Jan 2025 19:59:12 +0100
10+
+Subject: [PATCH] mediatek-mt7622: netgear-wax206 fix wifi leds
11+
+
12+
+the wifi leds of the wax206 were not reacting.
13+
+This patch enables the green leds to show activity, as the blue ones are very bright.
14+
+Also set the label-mac to the gmac0
15+
+
16+
+Signed-off-by: Florian Maurer <[email protected]>
17+
+---
18+
+ target/linux/mediatek/dts/mt7622-netgear-wax206.dts | 3 +++
19+
+ 1 file changed, 3 insertions(+)
20+
+
21+
+diff --git a/target/linux/mediatek/dts/mt7622-netgear-wax206.dts b/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
22+
+index 524a49874089fb..4881004ac3b750 100644
23+
+--- a/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
24+
++++ b/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
25+
+@@ -13,6 +13,7 @@
26+
+
27+
+ aliases {
28+
+ ethernet0 = &gmac0;
29+
++ label-mac-device = &gmac0;
30+
+ led-boot = &led_power_r;
31+
+ led-failsafe = &led_power_r;
32+
+ led-running = &led_power_g;
33+
+@@ -84,6 +85,7 @@
34+
+ default-state = "off";
35+
+ gpios = <&pio 85 GPIO_ACTIVE_LOW>;
36+
+ label = "wifin:green";
37+
++ linux,default-trigger = "phy0tpt";
38+
+ };
39+
+
40+
+ wifin_blue {
41+
+@@ -96,6 +98,7 @@
42+
+ default-state = "off";
43+
+ gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
44+
+ label = "wifia:green";
45+
++ linux,default-trigger = "phy1tpt";
46+
+ };
47+
+
48+
+ wifia_blue {

0 commit comments

Comments
 (0)