gluon-core: introduce device_uses_wlan() helper

This commit is contained in:
Matthias Schiffer 2021-09-13 17:47:04 +02:00
parent ed7134fae6
commit 5f1f960753
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -150,6 +150,17 @@ function M.device_supports_mfp(uci)
return supports_mfp
end
function M.device_uses_wlan(uci)
local ret = false
uci:foreach('wireless', 'wifi-device', function()
ret = true
return false
end)
return ret
end
function M.device_uses_11a(uci)
local ret = false