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_tsiligian...@silverton.gr>
---
diff --git a/trunk/package/madwifi/files/lib/wifi/madwifi.sh 
b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
index 1e5b0db..1812e94 100755
--- a/trunk/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
@@ -357,7 +357,7 @@ detect_atheros() {
 "
                        ;;
                esac
-               [ "$type" = atheros ] && return
+               [ "$type" = atheros ] && continue
                cat <<EOF
 config wifi-device  $dev
        option type     atheros
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to