diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-13 18:22:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-13 18:22:05 +0000 |
commit | ff7e84d401a4d17f57c2bace76d8725d4a762218 (patch) | |
tree | 77dffe3ebc96f6d005786f917d2c5665b56be1a3 /package/broadcom-diag/src/diag.c | |
parent | 4c7870405ea7c634787cbe7d20e3e8c1edbbf38a (diff) | |
download | mtk-20170518-ff7e84d401a4d17f57c2bace76d8725d4a762218.zip mtk-20170518-ff7e84d401a4d17f57c2bace76d8725d4a762218.tar.gz mtk-20170518-ff7e84d401a4d17f57c2bace76d8725d4a762218.tar.bz2 |
improve accuracy of the diag detection of the wrt54g3g
SVN-Revision: 5521
Diffstat (limited to 'package/broadcom-diag/src/diag.c')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 7c6e303..7f55434 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")) |