1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:37:10 +02:00

madwifi: only set the desired mode for the first vap

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15059 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-03-29 00:10:31 +00:00
parent 90daea0685
commit fbc4e8926b

View File

@ -120,10 +120,10 @@ enable_atheros() {
*fh) hwmode=fh;;
*) hwmode=auto;;
esac
iwpriv "$ifname" mode "$hwmode"
iwpriv "$ifname" pureg "$pureg"
[ "$first" = 1 ] && {
iwpriv "$ifname" mode "$hwmode"
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
}