Developing lightweight computation at the DSG edge

Commit 1eaef081 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix wlan0ap => wlan0apap conversion



Filter wireless devices ending in "a" (for compat. adhoc+802.11s mode)
and also those ending in "ap" (for mesh+ap or adhoc+ap) to avoid
getting wlan0-wlan0ap turning into wlan0ap-wlan0apap.
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 157d3b8c
......@@ -71,8 +71,10 @@ function qmpinfo.get_devices()
local do_insert = false
if nixio.fs.stat(sysnet..d..'/phy80211',"type") ~= nil then
if string.sub(d, -1) ~= "a" then
table.insert(phydevs.wifi,d)
do_insert = true
if string.sub(d, -2) ~= "ap" then
table.insert(phydevs.wifi,d)
do_insert = true
end
end
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment