-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mt7622 wifi issues add netgear-eax12
- Loading branch information
Showing
3 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |