[PATCH] [madwifi] Detect every atheros device present
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 May 2009 20:44:19 +0000 (20:44 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 May 2009 20:44:19 +0000 (20:44 +0000)
This patch is for boards with more than one atheros devices. It changes
detect_atheros() function to continue with the detection of every device
present and don't return when just one is found
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15940 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 24d371b386e3b111b8b68f217178e788865e2374..47241313b9ac4cf5a405b52e921a93db58028c12 100755 (executable)
@@ -361,7 +361,7 @@ detect_atheros() {
 "
                        ;;
                esac
-               [ "$type" = atheros ] && return
+               [ "$type" = atheros ] && continue
                cat <<EOF
 config wifi-device  $dev
        option type     atheros