[][MAC80211][hnat][Add hash index sanity check to __mtk_ppe_check_skb]

[Description]
Add hash index sanity check to __mtk_ppe_check_skb.

If without this patch, kernel will assert panic when receiving hash
index lager than MTK_PPE_ENTRIES.

[Release-log]
N/A


Change-Id: I9001a0fb612f053dd5c579cdecf944a1b02a4c9e
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6792852
diff --git a/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch b/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch
index b09682f..b3ecebe 100755
--- a/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch
+++ b/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch
@@ -843,7 +843,7 @@
  	memcpy(&hwe->data, &entry->data, sizeof(hwe->data));
  	wmb();
  	hwe->ib1 = entry->ib1;
-@@ -362,32 +519,198 @@ int mtk_foe_entry_commit(struct mtk_ppe *ppe, struct mtk_foe_entry *entry,
+@@ -362,32 +519,201 @@ int mtk_foe_entry_commit(struct mtk_ppe *ppe, struct mtk_foe_entry *entry,
  	dma_wmb();
  
  	mtk_ppe_cache_clear(ppe);
@@ -937,6 +937,9 @@
 +
 +	spin_lock_bh(&ppe_lock);
 +
++	if (hash >= MTK_PPE_ENTRIES)
++		goto out;
++
 +	if (FIELD_GET(MTK_FOE_IB1_STATE, hwe->ib1) == MTK_FOE_STATE_BIND)
 +		goto out;
 +