mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 22:53:09 +02:00
fix madwifi mode setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11882 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1274eb90e0
commit
0950852283
@ -97,6 +97,8 @@ enable_atheros() {
|
|||||||
[ "$first" = 1 ] && {
|
[ "$first" = 1 ] && {
|
||||||
# only need to change freq band and channel on the first vif
|
# only need to change freq band and channel on the first vif
|
||||||
config_get agmode "$device" agmode
|
config_get agmode "$device" agmode
|
||||||
|
[ -z "$agmode" ] && config_get agmode "$device" mode
|
||||||
|
|
||||||
pureg=0
|
pureg=0
|
||||||
case "$agmode" in
|
case "$agmode" in
|
||||||
*b) agmode=11b;;
|
*b) agmode=11b;;
|
||||||
@ -105,11 +107,9 @@ enable_atheros() {
|
|||||||
*a) agmode=11a;;
|
*a) agmode=11a;;
|
||||||
*) agmode=auto;;
|
*) agmode=auto;;
|
||||||
esac
|
esac
|
||||||
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
|
||||||
iwpriv "$ifname" mode "$agmode"
|
iwpriv "$ifname" mode "$agmode"
|
||||||
iwpriv "$ifname" pureg "$pureg"
|
iwpriv "$ifname" pureg "$pureg"
|
||||||
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
||||||
ifconfig "$ifname" up
|
|
||||||
}
|
}
|
||||||
|
|
||||||
config_get_bool hidden "$vif" hidden 0
|
config_get_bool hidden "$vif" hidden 0
|
||||||
@ -244,8 +244,6 @@ enable_atheros() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
ifconfig "$ifname" up
|
ifconfig "$ifname" up
|
||||||
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
|
||||||
|
|
||||||
local net_cfg bridge
|
local net_cfg bridge
|
||||||
net_cfg="$(find_net_config "$vif")"
|
net_cfg="$(find_net_config "$vif")"
|
||||||
[ -z "$net_cfg" ] || {
|
[ -z "$net_cfg" ] || {
|
||||||
|
Loading…
Reference in New Issue
Block a user