Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
darkbit
ffbs-gluon
Commits
427c8375
Commit
427c8375
authored
7 years ago
by
Martin Weinelt
Committed by
Matthias Schiffer
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gluon-core: 200-wireless: upgrade 11ac radios to VHT20 (#1328)
Patch originally authored by @oleeander. Fixes #424
parent
d61f6a1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-core/Makefile
+2
-2
2 additions, 2 deletions
package/gluon-core/Makefile
package/gluon-core/luasrc/lib/gluon/upgrade/200-wireless
+12
-1
12 additions, 1 deletion
package/gluon-core/luasrc/lib/gluon/upgrade/200-wireless
with
14 additions
and
3 deletions
package/gluon-core/Makefile
+
2
−
2
View file @
427c8375
...
...
@@ -17,8 +17,8 @@ define Package/gluon-core
CATEGORY
:=
Gluon
TITLE
:=
Base files of Gluon
DEPENDS
:=
\
+gluon-site +libgluonutil +lua-platform-info +lua-simple-uci +lua-hash +lua-jsonc
+luci-lib-nixio
\
+vxlan +odhcp6c +firewall +pretty-hostname
+gluon-site +libgluonutil
+libiwinfo-lua
+lua-platform-info +lua-simple-uci +lua-hash +lua-jsonc
\
+luci-lib-nixio
+vxlan +odhcp6c +firewall +pretty-hostname
endef
define
Package/gluon-core/description
...
...
This diff is collapsed.
Click to expand it.
package/gluon-core/luasrc/lib/gluon/upgrade/200-wireless
+
12
−
1
View file @
427c8375
...
...
@@ -3,6 +3,7 @@
local
util
=
require
'gluon.util'
local
site
=
require
'gluon.site'
local
sysconfig
=
require
'gluon.sysconfig'
local
iwinfo
=
require
'iwinfo'
local
uci
=
require
(
'simple-uci'
).
cursor
()
...
...
@@ -20,6 +21,15 @@ local function get_channel(radio, config)
return
channel
or
config
.
channel
()
end
local
function
get_htmode
(
radio
)
local
phy
=
util
.
find_phy
(
radio
)
if
iwinfo
.
nl80211
.
hwmodelist
(
phy
).
ac
then
return
'VHT20'
else
return
'HT20'
end
end
local
function
is_disabled
(
name
)
if
uci
:
get
(
'wireless'
,
name
)
then
return
uci
:
get_bool
(
'wireless'
,
name
,
'disabled'
)
...
...
@@ -152,11 +162,12 @@ util.foreach_radio(uci, function(radio, index, config)
end
local
channel
=
get_channel
(
radio
,
config
)
local
htmode
=
get_htmode
(
radio
)
uci
:
delete
(
'wireless'
,
radio_name
,
'disabled'
)
uci
:
set
(
'wireless'
,
radio_name
,
'channel'
,
channel
)
uci
:
set
(
'wireless'
,
radio_name
,
'htmode'
,
'HT20'
)
uci
:
set
(
'wireless'
,
radio_name
,
'htmode'
,
htmode
)
uci
:
set
(
'wireless'
,
radio_name
,
'country'
,
site
.
regdom
())
uci
:
set_list
(
'wireless'
,
radio_name
,
'supported_rates'
,
config
.
supported_rates
())
...
...
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