Support for GL.iNet E750 (#1079)

* Support for GL.iNet E750
This commit is contained in:
Tim Wilkinson 2024-01-22 20:22:27 -08:00 committed by GitHub
parent 35316299c1
commit 1c72b145f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 139 additions and 117 deletions

View File

@ -60,6 +60,24 @@
}
}
},
"gl.inet gl-e750": {
"wlan0": {
"maxpower": "20",
"antenna": {
"description": "3.5 dBi Omni",
"gain": 3.5,
"beamwidth": 360
}
},
"wlan1": {
"maxpower": "20",
"antenna": {
"description": "1.5 dBi Omni",
"gain": 1.5,
"beamwidth": 360
}
}
},
"tp-link cpe210 v1": {
"maxpower": "23",
"chanpower": {

View File

@ -74,9 +74,7 @@ end
function hardware.get_radio_count()
local radio = hardware.get_radio()
if not radio then
return 0
elseif radio.wlan0 then
if radio and radio.wlan0 then
if radio.wlan1 then
return 2
else

View File

@ -725,17 +725,11 @@ nc:commit("dhcp")
-- generate the wireless config file
local config = ""
local ifacenum = 0
local ifacecount = 0
local ifacecount = aredn.hardware.get_radio_count()
local devpaths = {}
if nixio.fs.stat(ieee80211) then
for devname in nixio.fs.dir(ieee80211)
for dev = 0, ifacecount - 1
do
ifacecount = ifacecount + 1
end
for devname in nixio.fs.dir(ieee80211)
do
local dev = devname:match("^phy(%d+)$")
local devname = "phy" .. dev
local radio = "radio" .. dev
local wlan = "wlan" .. dev
local devpath = nixio.fs.realpath(ieee80211 .. nixio.fs.readlink(ieee80211 .. devname)):match("^/sys/devices/(.*)/ieee802.*$")
@ -845,9 +839,6 @@ if nixio.fs.stat(ieee80211) then
config = config .. " option device '" .. radio .. "'\n"
config = config .. " option network 'wifi_mon'\n option mode 'monitor'\n\n"
end
ifacenum = ifacenum + 1
end
end
write_all("/tmp/new_config/wireless", config)

View File

@ -0,0 +1,14 @@
--- /dev/null
+++ b/package/kernel/ath10k-ct/patches/999-0001-fix-e750-reset-5g-crash.patch
@@ -0,0 +1,11 @@
+--- a/ath10k-5.15/pci.c
++++ b/ath10k-5.15/pci.c
+@@ -2571,7 +2571,7 @@
+ goto out;
+ }
+
+- schedule();
++ //schedule();
+ }
+
+ ret = -ETIMEDOUT;

View File

@ -2,6 +2,7 @@
001-ath79-reverse-wpad-basic-mbedtls.patch
006-flash-fixes.patch
010-lz77-decompression-support.patch
011-fix-e750-reset-5g-crash.patch
100-remove-rcbutton-reset.patch
701-extended-spectrum.patch
702-enable-country-hx.patch