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
617efdc7
Commit
617efdc7
authored
Jun 20, 2012
by
p4u
Browse files
Fixed web interface bug: when no txpower wireless tab crash
parent
3d63d726
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmpinfo.lua
View file @
617efdc7
...
...
@@ -71,7 +71,7 @@ function qmpinfo.get_txpower(dev)
local
iw
=
iwinfo
[
iwinfo
.
type
(
dev
)]
local
txpower_supported
=
{}
if
iw
~=
nil
then
local
txp
=
iw
.
txpwrlist
(
dev
)
local
txp
=
iw
.
txpwrlist
(
dev
)
or
{}
for
_
,
v
in
ipairs
(
txp
)
do
table.insert
(
txpower_supported
,
v
.
dbm
)
end
...
...
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