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
b6e523bc
Commit
b6e523bc
authored
17 years ago
by
Travis Kemen
Browse files
Options
Downloads
Patches
Plain Diff
some cleanup and remove overwriting of device defaults for bgscan and diversity
SVN-Revision: 9619
parent
8977c6c2
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/madwifi/files/lib/wifi/madwifi.sh
+10
-22
10 additions, 22 deletions
package/madwifi/files/lib/wifi/madwifi.sh
with
10 additions
and
22 deletions
package/madwifi/files/lib/wifi/madwifi.sh
+
10
−
22
View file @
b6e523bc
...
@@ -159,41 +159,29 @@ enable_atheros() {
...
@@ -159,41 +159,29 @@ enable_atheros() {
esac
esac
config_get ssid
"
$vif
"
ssid
config_get ssid
"
$vif
"
ssid
config_get_bool bgscan
"
$vif
"
bgscan
0
config_get_bool bgscan
"
$vif
"
bgscan
iwpriv
"
$ifname
"
bgscan
"
$bgscan
"
[
-n
"
$bgscan
"
]
&&
iwpriv
"
$ifname
"
bgscan
"
$bgscan
"
config_get_bool antdiv
"
$device
"
diversity
1
config_get_bool antdiv
"
$device
"
diversity
sysctl
-w
dev.
"
$device
"
.diversity
=
"
$antdiv
"
>
&-
[
-n
"
$antdiv
"
]
&&
sysctl
-w
dev.
"
$device
"
.diversity
=
"
$antdiv
"
>
&-
config_get antrx
"
$device
"
rxantenna
config_get antrx
"
$device
"
rxantenna
if
[
-n
"
$antrx
"
]
;
then
[
-n
"
$antrx
"
]
&&
sysctl
-w
dev.
"
$device
"
.rxantenna
=
"
$antrx
"
>
&-
sysctl
-w
dev.
"
$device
"
.rxantenna
=
"
$antrx
"
>
&-
fi
config_get anttx
"
$device
"
txantenna
config_get anttx
"
$device
"
txantenna
if
[
-n
"
$anttx
"
]
;
then
[
-n
"
$anttx
"
]
&&
sysctl
-w
dev.
"
$device
"
.txantenna
=
"
$anttx
"
>
&-
sysctl
-w
dev.
"
$device
"
.txantenna
=
"
$anttx
"
>
&-
fi
config_get distance
"
$device
"
distance
config_get distance
"
$device
"
distance
if
[
-n
"
$distance
"
]
;
then
[
-n
"
$distance
"
]
&&
athctrl
-i
"
$device
"
-d
"
$distance
"
>
&-
athctrl
-i
"
$device
"
-d
"
$distance
"
>
&-
fi
config_get txpwr
"
$vif
"
txpower
config_get txpwr
"
$vif
"
txpower
if
[
-n
"
$txpwr
"
]
;
then
[
-n
"
$txpwr
"
]
&&
iwconfig
"
$ifname
"
txpower
"
${
txpwr
%%.*
}
"
iwconfig
"
$ifname
"
txpower
"
${
txpwr
%%.*
}
"
fi
config_get frag
"
$vif
"
frag
config_get frag
"
$vif
"
frag
if
[
-n
"
$frag
"
]
;
then
[
-n
"
$frag
"
]
&&
iwconfig
"
$ifname
"
frag
"
${
frag
%%.*
}
"
iwconfig
"
$ifname
"
frag
"
${
frag
%%.*
}
"
fi
config_get rts
"
$vif
"
rts
config_get rts
"
$vif
"
rts
if
[
-n
"
$rts
"
]
;
then
[
-n
"
$rts
"
]
&&
iwconfig
"
$ifname
"
rts
"
${
rts
%%.*
}
"
iwconfig
"
$ifname
"
rts
"
${
rts
%%.*
}
"
fi
ifconfig
"
$ifname
"
up
ifconfig
"
$ifname
"
up
iwconfig
"
$ifname
"
channel
"
$channel
"
>
/dev/null 2>/dev/null
iwconfig
"
$ifname
"
channel
"
$channel
"
>
/dev/null 2>/dev/null
...
...
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