Skip to content

Commit

Permalink
fixes for wax206
Browse files Browse the repository at this point in the history
fix mt7622 wifi issues
add netgear-eax12
  • Loading branch information
maurerle authored and FFAC committed Jan 23, 2025
1 parent 6794511 commit 21f43ef
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 2 deletions.
28 changes: 28 additions & 0 deletions patches/mt7622-3430.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 8c930c2ec6782d05f2b464a7cc54a0957177dd4d Mon Sep 17 00:00:00 2001
From: Florian Maurer <[email protected]>
Date: Wed, 22 Jan 2025 22:12:29 +0100
Subject: [PATCH] gluon-core: this fixes the mediatek-mt7622 issue with
renaming wireless phys

Signed-off-by: Florian Maurer <[email protected]>
---
package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
index 01379a1d11..bce6c5d089 100644
--- a/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
+++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
@@ -9,7 +9,11 @@ local iwinfo = require 'iwinfo'
local M = {}

function M.find_phy(config)
- return iwinfo.nl80211.phyname(config['.name'])
+ local phyname = iwinfo.nl80211.phyname(config['.name'])
+ if not phyname then
+ phyname = iwinfo.nl80211.phyname(config['.name']:gsub("radio", "phy"))
+ end
+ return phyname
end

local function get_addresses(radio)
15 changes: 13 additions & 2 deletions patches/targets-ramips-mt7621.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
diff --git a/targets/ramips-mt7621 b/targets/ramips-mt7621
index 10c9d19f..fc9faf36 100644
index 10c9d19f..b9e96dbc 100644
--- a/targets/ramips-mt7621
+++ b/targets/ramips-mt7621
@@ -105,6 +105,8 @@ device('tp-link-re500-v1', 'tplink_re500-v1')
@@ -71,6 +71,10 @@ device('netgear-ex6150', 'netgear_ex6150', {
factory_ext = '.chk',
})

+device('netgear-eax12', 'netgear_eax12', {
+ factory_ext = '.img',
+})
+
device('netgear-r6220', 'netgear_r6220', {
factory_ext = '.img',
})
@@ -105,6 +109,8 @@ device('tp-link-re500-v1', 'tplink_re500-v1')

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

Expand Down
48 changes: 48 additions & 0 deletions patches/wax206-fixes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/patches/openwrt/17694.patch b/patches/openwrt/17694.patch
new file mode 100644
index 00000000..34277609
--- /dev/null
+++ b/patches/openwrt/17694.patch
@@ -0,0 +1,42 @@
+From 1ac8ce7778e36f71e93b8ca138bead81caef03ab Mon Sep 17 00:00:00 2001
+From: Florian Maurer <[email protected]>
+Date: Wed, 22 Jan 2025 19:59:12 +0100
+Subject: [PATCH] mediatek-mt7622: netgear-wax206 fix wifi leds
+
+the wifi leds of the wax206 were not reacting.
+This patch enables the green leds to show activity, as the blue ones are very bright.
+Also set the label-mac to the gmac0
+
+Signed-off-by: Florian Maurer <[email protected]>
+---
+ target/linux/mediatek/dts/mt7622-netgear-wax206.dts | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/target/linux/mediatek/dts/mt7622-netgear-wax206.dts b/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
+index 524a49874089fb..4881004ac3b750 100644
+--- a/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
++++ b/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
+@@ -13,6 +13,7 @@
+
+ aliases {
+ ethernet0 = &gmac0;
++ label-mac-device = &gmac0;
+ led-boot = &led_power_r;
+ led-failsafe = &led_power_r;
+ led-running = &led_power_g;
+@@ -84,6 +85,7 @@
+ default-state = "off";
+ gpios = <&pio 85 GPIO_ACTIVE_LOW>;
+ label = "wifin:green";
++ linux,default-trigger = "phy0tpt";
+ };
+
+ wifin_blue {
+@@ -96,6 +98,7 @@
+ default-state = "off";
+ gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
+ label = "wifia:green";
++ linux,default-trigger = "phy1tpt";
+ };
+
+ wifia_blue {

0 comments on commit 21f43ef

Please sign in to comment.