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 <>
parent 157d3b8c
...@@ -71,8 +71,10 @@ function qmpinfo.get_devices() ...@@ -71,8 +71,10 @@ function qmpinfo.get_devices()
local do_insert = false local do_insert = false
if nixio.fs.stat(sysnet..d..'/phy80211',"type") ~= nil then if nixio.fs.stat(sysnet..d..'/phy80211',"type") ~= nil then
if string.sub(d, -1) ~= "a" then if string.sub(d, -1) ~= "a" then
table.insert(phydevs.wifi,d) if string.sub(d, -2) ~= "ap" then
do_insert = true table.insert(phydevs.wifi,d)
do_insert = true
end end
else 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