improve handling of 11a/b/g mode setting. redirect iwconfig channel errors to /dev/null (the command fails at times and needs to be run multiple times, because it's a bit unreliable)
SVN-Revision: 6975
This commit is contained in:
parent
137352bdc6
commit
53a2bf0f59
@ -99,12 +99,13 @@ enable_atheros() {
|
|||||||
*bg) agmode=11g;;
|
*bg) agmode=11g;;
|
||||||
*g) agmode=11g; pureg=1;;
|
*g) agmode=11g; pureg=1;;
|
||||||
*a) agmode=11a;;
|
*a) agmode=11a;;
|
||||||
*) agmode=11g;;
|
*) agmode=auto;;
|
||||||
esac
|
esac
|
||||||
iwconfig "$ifname" channel 0
|
iwconfig "$ifname" channel 0 >/dev/null 2>/dev/null
|
||||||
|
ifconfig "$ifname" up
|
||||||
iwpriv "$ifname" mode "$agmode"
|
iwpriv "$ifname" mode "$agmode"
|
||||||
iwpriv "$ifname" pureg "$pureg"
|
iwpriv "$ifname" pureg "$pureg"
|
||||||
iwconfig "$ifname" channel "$channel"
|
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
config_get_bool hidden "$vif" hidden
|
config_get_bool hidden "$vif" hidden
|
||||||
@ -181,7 +182,7 @@ enable_atheros() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
ifconfig "$ifname" up
|
ifconfig "$ifname" up
|
||||||
iwconfig "$ifname" channel "$channel"
|
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")"
|
||||||
|
Loading…
Reference in New Issue
Block a user