Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
ed7134fa
Unverified
Commit
ed7134fa
authored
3 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-web-wifi-config: reuse device_uses_11a() instead of reimplementing it less efficiently
parent
7a2cd66c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua
+1
-13
1 addition, 13 deletions
.../luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua
with
1 addition
and
13 deletions
package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua
+
1
−
13
View file @
ed7134fa
...
@@ -24,18 +24,6 @@ local function txpower_list(phy)
...
@@ -24,18 +24,6 @@ local function txpower_list(phy)
return
new
return
new
end
end
local
function
has_5ghz_radio
()
local
result
=
false
uci
:
foreach
(
'wireless'
,
'wifi-device'
,
function
(
config
)
local
radio
=
config
[
'.name'
]
local
hwmode
=
uci
:
get
(
'wireless'
,
radio
,
'hwmode'
)
result
=
result
or
(
hwmode
==
'11a'
or
hwmode
==
'11na'
)
end
)
return
result
end
local
f
=
Form
(
translate
(
"WLAN"
))
local
f
=
Form
(
translate
(
"WLAN"
))
f
:
section
(
Section
,
nil
,
translate
(
f
:
section
(
Section
,
nil
,
translate
(
...
@@ -142,7 +130,7 @@ uci:foreach('wireless', 'wifi-device', function(config)
...
@@ -142,7 +130,7 @@ uci:foreach('wireless', 'wifi-device', function(config)
end
)
end
)
if
has_5ghz_radio
(
)
and
not
wireless
.
preserve_channels
(
uci
)
then
if
wireless
.
device_uses_11a
(
uci
)
and
not
wireless
.
preserve_channels
(
uci
)
then
local
r
=
f
:
section
(
Section
,
translate
(
"Outdoor Installation"
),
translate
(
local
r
=
f
:
section
(
Section
,
translate
(
"Outdoor Installation"
),
translate
(
"Configuring the node for outdoor use tunes the 5 GHz radio to a frequency "
"Configuring the node for outdoor use tunes the 5 GHz radio to a frequency "
..
"and transmission power that conforms with the local regulatory requirements. "
..
"and transmission power that conforms with the local regulatory requirements. "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment