Skip to content

Commit 3c021ba

Browse files
rmileckisashalevin
authored andcommitted
MIPS: BCM47XX: Fix detecting Microsoft MN-700 & Asus WL500G
[ Upstream commit 96f7c21 ] Since the day of adding this code it was broken. We were iterating over a wrong array and checking for wrong NVRAM entry. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens <hauke@hauke-m.de> Patchwork: https://patchwork.linux-mips.org/patch/9654/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent e17bb06 commit 3c021ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/mips/bcm47xx/board.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ static __init const struct bcm47xx_board_type *bcm47xx_board_get_nvram(void)
247247
}
248248

249249
if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 &&
250-
bcm47xx_nvram_getenv("boardtype", buf2, sizeof(buf2)) >= 0) {
251-
for (e2 = bcm47xx_board_list_boot_hw; e2->value1; e2++) {
250+
bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0) {
251+
for (e2 = bcm47xx_board_list_hw_version_num; e2->value1; e2++) {
252252
if (!strstarts(buf1, e2->value1) &&
253253
!strcmp(buf2, e2->value2))
254254
return &e2->board;

0 commit comments

Comments
 (0)