gluon-core: introduce device_uses_wlan() helper
This commit is contained in:
parent
ed7134fae6
commit
5f1f960753
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user