[package] mac80211: Fix unique device autodetection
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 15 Mar 2011 00:44:02 +0000 (00:44 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 15 Mar 2011 00:44:02 +0000 (00:44 +0000)
SVN-Revision: 26165

package/mac80211/files/lib/wifi/mac80211.sh

index 386bda8e5278158e6a0a0bac4bc13417c14b1f01..d395db11df643adea3edd54f32fa850dc6d59cf3 100644 (file)
@@ -477,7 +477,7 @@ enable_mac80211() {
 }
 
 
-check_device() {
+check_mac80211_device() {
        config_get phy "$1" phy
        [ -z "$phy" ] && {
                find_mac80211_phy "$1" >/dev/null || return 0
@@ -496,7 +496,7 @@ detect_mac80211() {
        done
        for dev in $(ls /sys/class/ieee80211); do
                found=0
-               config_foreach check_device wifi-device
+               config_foreach check_mac80211_device wifi-device
                [ "$found" -gt 0 ] && continue
 
                mode_11n=""