Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
3dbf09af
Commit
3dbf09af
authored
Sep 18, 2012
by
Simó Albert i Beltran
Browse files
sed -i -e 's/\s\+$//g' packages/qmp-small-node/files/etc/qmp/qmplua/wifi.lua
parent
14ce05c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmplua/wifi.lua
View file @
3dbf09af
...
...
@@ -31,10 +31,10 @@ wifi.info = {}
function
wifi
.
apply
(
dev
)
local
wdev
=
model
.
get_type_by_option
(
'wireless'
,
'device'
,
dev
)
if
wdev
.
mode
==
"none"
then
debug
.
logger
(
"Device "
..
dev
..
" mode is none, qMp wont configure it"
)
debug
.
logger
(
"Device "
..
dev
..
" mode is none, qMp wont configure it"
)
return
true
end
-- Getting all parameters and checking no one is nil
local
mode
=
wdev
.
mode
||
return
nil
local
channel
=
util
.
replace
(
wdev
.
channel
,
''
,(
'+'
,
'-'
))
||
return
nil
...
...
@@ -52,10 +52,10 @@ function wifi.apply(dev)
else
template
=
mode
end
else
else
template
=
mode
..
"-b"
end
end
end
function
wifi
.
info
.
modes
(
dev
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment