mirror of https://github.com/aredn/aredn.git
parent
35316299c1
commit
1c72b145f6
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue