From 9ff2a956d3214802de5e9c6bc23d1850215f6380 Mon Sep 17 00:00:00 2001 From: thepeople Date: Wed, 27 Jun 2007 13:25:55 +0000 Subject: add fragmentation and rts settings thanks rene closes #1725 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7743 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/madwifi/files/lib/wifi/madwifi.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'package/madwifi/files/lib/wifi') diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 2fd025b12..69506dbde 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -184,6 +184,16 @@ enable_atheros() { iwconfig "$ifname" txpower "${txpwr%%.*}" fi + config_get frag "$vif" frag + if [ -n "$frag" ]; then + iwconfig "$ifname" frag "${frag%%.*}" + fi + + config_get rts "$vif" rts + if [ -n "$rts" ]; then + iwconfig "$ifname" rts "${rts%%.*}" + fi + ifconfig "$ifname" up iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null @@ -268,6 +278,8 @@ config wifi-iface option hidden 0 # option txpower 15 # option bgscan enable +# option frag off +# option rts off option encryption none EOF -- cgit v1.2.3