[][MAC80211][hostapd][refine hostapd patches]

[Description]
Refactor hostapd patches and apply new naming rule.

[Release-log]
N/A

Change-Id: I757e11f7171618db5f5d961123610474ef383a1f
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7135678
diff --git a/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/network/services/hostapd/patches/mtk-0100-hostapd-mtk-update-eht-operation-elem.patch b/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/network/services/hostapd/patches/mtk-0100-hostapd-mtk-update-eht-operation-elem.patch
new file mode 100644
index 0000000..bc3bc1a
--- /dev/null
+++ b/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/network/services/hostapd/patches/mtk-0100-hostapd-mtk-update-eht-operation-elem.patch
@@ -0,0 +1,51 @@
+From d91a63957aa7b4231d45c0a8ca33a34d53764ef2 Mon Sep 17 00:00:00 2001
+From: Peter Chiu <chui-hao.chiu@mediatek.com>
+Date: Fri, 30 Sep 2022 00:16:21 +0800
+Subject: [PATCH] hostapd: mtk: update eht operation elem
+
+---
+ src/ap/ieee802_11_eht.c      | 5 +++--
+ src/common/ieee802_11_defs.h | 1 +
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c
+index ec36a9e7a..fc472b8e2 100644
+--- a/src/ap/ieee802_11_eht.c
++++ b/src/ap/ieee802_11_eht.c
+@@ -183,7 +183,7 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid)
+ 		return eid;
+ 
+ 	*pos++ = WLAN_EID_EXTENSION;
+-	*pos++ = 5;
++	*pos++ = 9;
+ 	*pos++ = WLAN_EID_EXT_EHT_OPERATION;
+ 
+ 	oper = (struct ieee80211_eht_operation *) pos;
+@@ -224,10 +224,11 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid)
+ 		return eid;
+ 	}
+ 
++	oper->mcs_nss_set = 0x11111111;
+ 	oper->oper_info.ccfs0 = seg0 ? seg0 : hapd->iconf->channel;
+ 	oper->oper_info.ccfs1 = seg1;
+ 
+-	return pos + 4;
++	return pos + 8;
+ }
+ 
+ 
+diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
+index 62088bda6..78e7bee58 100644
+--- a/src/common/ieee802_11_defs.h
++++ b/src/common/ieee802_11_defs.h
+@@ -2435,6 +2435,7 @@ struct ieee80211_eht_oper_info {
+ /* Figure 9-1002a: EHT Operation element format */
+ struct ieee80211_eht_operation {
+ 	u8 oper_params; /* EHT Operation Parameters: EHT_OPER_* bits */
++	le32 mcs_nss_set;
+ 	struct ieee80211_eht_oper_info oper_info; /* 0 or 3 or 5 octets */
+ } STRUCT_PACKED;
+ 
+-- 
+2.25.1
+