mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-07 11:30:37 +00:00
madwifi.sh channel fix
In the madwifi.sh there is to read "only need to change freq band and channel on the first vif". This is wrong. For example if you create a new Ad-Hoc network and an AP interface, the channel is reseted to 1, regardless of the UCI setting. So remove this wrong code. Signed-off-by: Alina Friedrichsen <x-alina@gmx.net> SVN-Revision: 16814
This commit is contained in:
parent
fc5ad60288
commit
a4ed68fbe4
@ -126,7 +126,6 @@ enable_atheros() {
|
||||
config_get distance "$device" distance
|
||||
[ -n "$distance" ] && sysctl -w dev."$device".distance="$distance" >&-
|
||||
|
||||
local first=1
|
||||
for vif in $vifs; do
|
||||
local start_hostapd= vif_txpower= nosbeacon=
|
||||
config_get ifname "$vif" ifname
|
||||
@ -146,8 +145,6 @@ enable_atheros() {
|
||||
}
|
||||
config_set "$vif" ifname "$ifname"
|
||||
|
||||
# only need to change freq band and channel on the first vif
|
||||
[ "$first" = 1 ] && {
|
||||
config_get hwmode "$device" hwmode
|
||||
[ -z "$hwmode" ] && config_get hwmode "$device" mode
|
||||
|
||||
@ -167,7 +164,6 @@ enable_atheros() {
|
||||
iwpriv "$ifname" pureg "$pureg"
|
||||
|
||||
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
||||
}
|
||||
|
||||
config_get_bool hidden "$vif" hidden 0
|
||||
iwpriv "$ifname" hide_ssid "$hidden"
|
||||
@ -339,7 +335,6 @@ enable_atheros() {
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
first=0
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user