Delay bringing up the interface because some cards requires setting the mode before bringing it up (#3541)

SVN-Revision: 11533
owl
Florian Fainelli 2008-06-18 17:09:02 +00:00
parent e2b679fd3f
commit e2e80ab38a
1 changed files with 1 additions and 1 deletions

View File

@ -106,11 +106,11 @@ enable_atheros() {
*) agmode=auto;;
esac
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
ifconfig "$ifname" up
sleep 1
iwpriv "$ifname" mode "$agmode"
iwpriv "$ifname" pureg "$pureg"
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
ifconfig "$ifname" up
}
config_get_bool hidden "$vif" hidden 0