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
da22c5cf
Unverified
Commit
da22c5cf
authored
7 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-core: gluon.util: change find_phy argument to config table and make public
parent
9d5c5511
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
+2
-4
2 additions, 4 deletions
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
with
2 additions
and
4 deletions
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
+
2
−
4
View file @
da22c5cf
...
@@ -149,9 +149,7 @@ local function find_phy_by_macaddr(macaddr)
...
@@ -149,9 +149,7 @@ local function find_phy_by_macaddr(macaddr)
end
end
end
end
local
function
find_phy
(
radio
)
function
find_phy
(
config
)
local
config
=
uci
:
get_all
(
'wireless'
,
radio
)
if
not
config
or
config
.
type
~=
'mac80211'
then
if
not
config
or
config
.
type
~=
'mac80211'
then
return
nil
return
nil
elseif
config
.
path
then
elseif
config
.
path
then
...
@@ -164,7 +162,7 @@ local function find_phy(radio)
...
@@ -164,7 +162,7 @@ local function find_phy(radio)
end
end
local
function
get_addresses
(
radio
)
local
function
get_addresses
(
radio
)
local
phy
=
find_phy
(
radio
)
local
phy
=
find_phy
(
uci
:
get_all
(
'wireless'
,
radio
)
)
if
not
phy
then
if
not
phy
then
return
function
()
end
return
function
()
end
end
end
...
...
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