summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-13 18:22:05 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-13 18:22:05 +0000
commit2cc1659bc9a88ab5e7463b8dfced1e36a47cbf52 (patch)
tree83521a8dd38e453c4dd04a6bec6046b8cf61f05b /package
parentb6d31f033f2993b68fd84dcc98fbd1c0d68e6d40 (diff)
improve accuracy of the diag detection of the wrt54g3g
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5521 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-diag/src/diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 7c6e303fc..7f55434af 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -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"))