Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
49bead58
Commit
49bead58
authored
17 years ago
by
Florian Fainelli
Browse files
Options
Downloads
Patches
Plain Diff
Add macfiltering to broadcom-wl
SVN-Revision: 8763
parent
87cef9d9
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/broadcom-wl/files/lib/wifi/broadcom.sh
+17
-2
17 additions, 2 deletions
package/broadcom-wl/files/lib/wifi/broadcom.sh
with
17 additions
and
2 deletions
package/broadcom-wl/files/lib/wifi/broadcom.sh
+
17
−
2
View file @
49bead58
...
...
@@ -5,6 +5,7 @@ scan_broadcom() {
local
wds
local
adhoc sta apmode
local
adhoc_if sta_if ap_if
local
macfilter
config_get vifs
"
$device
"
vifs
for
vif
in
$vifs
;
do
...
...
@@ -68,6 +69,18 @@ scan_broadcom() {
radio
=
0
;;
esac
macfilter
=
0
case
"
$macfilter
"
in
allow|2
)
macfilter
=
allow
;
;;
deny|1
)
macfilter
=
deny
;
;;
disable|0
)
macfilter
=
disabled
;
;;
esac
}
disable_broadcom
()
{
...
...
@@ -97,6 +110,8 @@ enable_broadcom() {
config_get slottime
"
$device
"
slottime
config_get rxant
"
$device
"
rxant
config_get txant
"
$device
"
txant
config_get macfilter
"
$device
"
macfilter
config_get maclist
"
$device
"
maclist
local
vif_pre_up vif_post_up vif_do_up
_c
=
0
...
...
@@ -232,8 +247,8 @@ rxant ${rxant:-3}
txant
${
txant
:-
3
}
radio
${
radio
:-
1
}
macfilter
0
maclist none
macfilter
${
macfilter
:-
disabled
}
maclist
${
maclist
:-
none
}
wds none
${
wds
:+wds
$wds
}
${
channel
:+channel
$channel
}
...
...
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