summaryrefslogtreecommitdiff
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
commit88e7da2babd4cc61032f2047525cfd1c56d09068 (patch)
tree51b4c36449ec4a005ffec713c74f90ec4f6d9ac7 /package/madwifi/files
parenta5546e6c40074a4c95b7bcf192a68e95e87ad306 (diff)
downloadmtk-20170518-88e7da2babd4cc61032f2047525cfd1c56d09068.zip
mtk-20170518-88e7da2babd4cc61032f2047525cfd1c56d09068.tar.gz
mtk-20170518-88e7da2babd4cc61032f2047525cfd1c56d09068.tar.bz2
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')
-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 de9870c..dd030ba 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 0c3ad3c..0000000
--- a/package/madwifi/files/madwifi.init
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=20
-boot() {
- iwpriv ath0 mode 3
-}