aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-03-15 00:43:50 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-03-15 00:43:50 +0000
commit96bb1c7585b4fa5353a20d9a4b746a188397c96e (patch)
tree1a80e9a274c9b97923dcdca8ee2bf80a2ffff922 /package/madwifi/files/lib
parent8692d2e7e363c5a956715bcad39cc00679d27ac6 (diff)
downloadupstream-96bb1c7585b4fa5353a20d9a4b746a188397c96e.tar.gz
upstream-96bb1c7585b4fa5353a20d9a4b746a188397c96e.tar.bz2
upstream-96bb1c7585b4fa5353a20d9a4b746a188397c96e.zip
madwifi: Fix unique device autodetection
SVN-Revision: 26164
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 7b696f0d50..429f658ae7 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -406,7 +406,7 @@ enable_atheros() {
done
}
-check_device() {
+check_atheros_device() {
[ ${1%[0-9]} = "wifi" ] && config_set "$1" phy "$1"
config_get phy "$1" phy
[ -z "$phy" ] && {
@@ -429,7 +429,7 @@ detect_atheros() {
[ -d ath ] || return
for dev in $(ls -d wifi* 2>&-); do
found=0
- config_foreach check_device wifi-device
+ config_foreach check_atheros_device wifi-device
[ "$found" -gt 0 ] && continue
devname="$(cat /proc/sys/dev/$dev/dev_name)"