aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
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
commitd12343b632dcd4c2af73f3af14ac9eaf2b4ce8f8 (patch)
treec17b5d7b1f5a7ecd9410e38b9093a76722380230 /package/madwifi/files
parent1820fb67b7390bbdfddc3cc18e0681051c84bcea (diff)
downloadupstream-d12343b632dcd4c2af73f3af14ac9eaf2b4ce8f8.tar.gz
upstream-d12343b632dcd4c2af73f3af14ac9eaf2b4ce8f8.tar.bz2
upstream-d12343b632dcd4c2af73f3af14ac9eaf2b4ce8f8.zip
nuke old madwifi init script, add new /lib/wifi handler (usable for many configurations already), fix up a target name
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5889 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh3
-rw-r--r--package/madwifi/files/madwifi.init5
2 files changed, 3 insertions, 5 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;;
diff --git a/package/madwifi/files/madwifi.init b/package/madwifi/files/madwifi.init
deleted file mode 100644
index 0c3ad3c3c1..0000000000
--- a/package/madwifi/files/madwifi.init
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=20
-boot() {
- iwpriv ath0 mode 3
-}