[][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();