1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-04 05:24:09 +03:00

fix madwifi channel setting (#2073)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8681 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-09-07 20:42:59 +00:00
parent 235b19acea
commit 6110f74266

View File

@ -103,7 +103,7 @@ enable_atheros() {
*a) agmode=11a;;
*) agmode=auto;;
esac
iwconfig "$ifname" channel 0 >/dev/null 2>/dev/null
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null
ifconfig "$ifname" up
sleep 1
iwpriv "$ifname" mode "$agmode"