mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-04 05:57:28 +03:00
Delay bringing up the interface because some cards requires setting the mode before bringing it up (#3541)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11533 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a6e679f20b
commit
9b43f9743b
@ -106,11 +106,11 @@ enable_atheros() {
|
|||||||
*) agmode=auto;;
|
*) agmode=auto;;
|
||||||
esac
|
esac
|
||||||
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
|
||||||
ifconfig "$ifname" up
|
|
||||||
sleep 1
|
sleep 1
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user