commit | e16093ea20beea81bf38a14096e33eb8d8224b16 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Thu Jul 14 15:16:24 2022 +0800 |
committer | developer <developer@mediatek.com> | Fri Jul 15 08:44:58 2022 +0800 |
tree | 209daad8c9cd1351adf7b9fb833de7ddc1fff583 | |
parent | 81c0fb4541a679f42aa1455308405825a0aa4cf7 [diff] [blame] |
[][Fix switch command can be used both in 7531 and jaguar] [Description] Fix switch command can be used both in 7531 and jaguar. The change sumbit before affects the use of switch command in 7531. (https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6189993.) This change modifies the initialization sequence, first netlink initialization, then ioctl initialization. [Release-log] N/A Change-Id: I889cea3f6fce7a1dfa9c68d822afb3f307378378 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6248306
diff --git a/feed/switch/src/switch_753x.c b/feed/switch/src/switch_753x.c index 95a6a0d..1730235 100644 --- a/feed/switch/src/switch_753x.c +++ b/feed/switch/src/switch_753x.c
@@ -351,8 +351,8 @@ if (err < 0) { err = switch_ioctl_init(); if (!err) { - chip_name = get_chip_name(); nl_init_flag = false; + chip_name = get_chip_name(); if (chip_name < 0) { printf("no chip unsupport or chip id is invalid!\n"); exit_free();