[package] madwifi: Fix unique device autodetection
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 15 Mar 2011 00:43:50 +0000 (00:43 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 15 Mar 2011 00:43:50 +0000 (00:43 +0000)
SVN-Revision: 26164

package/madwifi/files/lib/wifi/madwifi.sh

index 7b696f0d500dff9226ce2e19e88d1200113c1ec6..429f658ae754c8ee8ddda723c7728a6c5031e637 100755 (executable)
@@ -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)"