mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
madwifi: keep a/g mode and pureg setting in sync across vaps
SVN-Revision: 12363
This commit is contained in:
parent
2a05d8cbba
commit
4419978f84
@ -94,7 +94,6 @@ enable_atheros() {
|
||||
}
|
||||
config_set "$vif" ifname "$ifname"
|
||||
|
||||
[ "$first" = 1 ] && {
|
||||
# only need to change freq band and channel on the first vif
|
||||
config_get agmode "$device" agmode
|
||||
[ -z "$agmode" ] && config_get agmode "$device" mode
|
||||
@ -113,6 +112,8 @@ enable_atheros() {
|
||||
esac
|
||||
iwpriv "$ifname" mode "$agmode"
|
||||
iwpriv "$ifname" pureg "$pureg"
|
||||
|
||||
[ "$first" = 1 ] && {
|
||||
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user