improve accuracy of the diag detection of the wrt54g3g
authorFelix Fietkau <nbd@openwrt.org>
Mon, 13 Nov 2006 18:22:05 +0000 (18:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 13 Nov 2006 18:22:05 +0000 (18:22 +0000)
SVN-Revision: 5521

package/broadcom-diag/src/diag.c

index 7c6e303fcf37521527d5bbe9d36aec9f4b4cd4ae..7f55434af2eac37c03f2def211cedc9b5f34c3f7 100644 (file)
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
- * $Id:$
+ * $Id$
  */
 #include <linux/module.h>
 #include <linux/pci.h>
@@ -401,7 +401,7 @@ static struct platform_t __init *platform_detect(void)
        if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) {
                /* CFE based - newer hardware */
                if (!strcmp(boardnum, "42")) { /* Linksys */
-                       if (!strcmp(boardtype, "0x0101"))
+                       if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6"))
                                return &platforms[WRT54G3G];
 
                        if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1"))