aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-22 08:02:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-22 08:02:59 +0000
commit88e7da2babd4cc61032f2047525cfd1c56d09068 (patch)
tree51b4c36449ec4a005ffec713c74f90ec4f6d9ac7 /package/madwifi/files/lib
parenta5546e6c40074a4c95b7bcf192a68e95e87ad306 (diff)
downloadupstream-88e7da2babd4cc61032f2047525cfd1c56d09068.tar.gz
upstream-88e7da2babd4cc61032f2047525cfd1c56d09068.tar.bz2
upstream-88e7da2babd4cc61032f2047525cfd1c56d09068.zip
nuke old madwifi init script, add new /lib/wifi handler (usable for many configurations already), fix up a target name
SVN-Revision: 5889
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index de9870ce65..dd030ba169 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -154,6 +154,9 @@ enable_atheros() {
}
config_set "$vif" ifname "$ifname"
+ config_get "$device" mode
+ iwpriv "$ifname" mode "${mode:-11g}"
+
config_get wds "$vif" wds
case "$wds" in
1|on|enabled) wds=1;;