aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-03-15 00:43:50 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-03-15 00:43:50 +0000
commita19413ee3a1e3a2ba450e65e6d87615500a2b085 (patch)
tree110ec3ee041b04dec15f92ffc0c1d1feb6b29ef4
parent044e3ec8e0efcde619736c3fa0cf5151a28ad30d (diff)
downloadmaster-187ad058-a19413ee3a1e3a2ba450e65e6d87615500a2b085.tar.gz
master-187ad058-a19413ee3a1e3a2ba450e65e6d87615500a2b085.tar.bz2
master-187ad058-a19413ee3a1e3a2ba450e65e6d87615500a2b085.zip
[package] madwifi: Fix unique device autodetection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26164 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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)"