[][Fix entry state in skb_to_hnat_info]

[Description]
Fix entry state in skb_to_hnat_info.

HNAT status should be obtained from foe before memcpy, otherwise the status will be mistakenly written as invalid,
which will cause the foe original info to be overwritten in large traffic and multiple flows forwarding (LAN->WIFI).

[Release-log]
N/A

Change-Id: I2c71b29cdb092882e712c92c892ebc976ff5ee91
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/5796655
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
index 7640336..292cf19 100644
--- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
+++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
@@ -1108,6 +1108,8 @@
 		return 0;
 
 	entry.bfib1.pkt_type = foe->udib1.pkt_type; /* Get packte type state*/
+	entry.bfib1.state = foe->udib1.state;
+
 #if defined(CONFIG_MEDIATEK_NETSYS_V2)
 	entry.bfib1.sp = foe->udib1.sp;
 #endif