[][MAC80211][hostpad][WPA3: mt7915: apply the patch naming rule]
[Description]
Change the patch name from 500-print-sae-groups-by-hostapd-ctrl.patch
to 409-2102-hostapd-print-sae-group-cap-by-hostapd-ctrl.patch
[Release-log]
Change-Id: Ia36e7083395e9a1c9f4e93a814d74fe8a8acee52
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/5412433
diff --git a/openwrt_patches-21.02/409-2102-hostapd-print-sae-group-cap-by-hostapd-ctrl.patch b/openwrt_patches-21.02/409-2102-hostapd-print-sae-group-cap-by-hostapd-ctrl.patch
new file mode 100644
index 0000000..b0fba34
--- /dev/null
+++ b/openwrt_patches-21.02/409-2102-hostapd-print-sae-group-cap-by-hostapd-ctrl.patch
@@ -0,0 +1,28 @@
+diff --git a/package/network/services/hostapd/patches/902-2021-print-sae-groups-by-hostapd-ctrl.patch b/package/network/services/hostapd/patches/902-2021-print-sae-groups-by-hostapd-ctrl.patch
+new file mode 100644
+index 0000000..859fdbf
+--- /dev/null
++++ b/package/network/services/hostapd/patches/902-2021-print-sae-groups-by-hostapd-ctrl.patch
+@@ -0,0 +1,22 @@
++--- a/hostapd/ctrl_iface.c
+++++ b/hostapd/ctrl_iface.c
++@@ -1584,6 +1584,19 @@ static int hostapd_ctrl_iface_get(struct
++ if (os_snprintf_error(buflen, res))
++ return -1;
++ return res;
+++ } else if (os_strcmp(cmd, "sae_group_capability") == 0) {
+++#ifdef CONFIG_SAE
+++ /* see sae_set_group() */
+++ res = os_snprintf(buf, buflen, "%s%s%s%s19 20 21",
+++ dh_groups_get(15) ? "15 ": "",
+++ dh_groups_get(16) ? "16 ": "",
+++ dh_groups_get(17) ? "17 ": "",
+++ dh_groups_get(18) ? "18 ": "");
+++
+++ if (os_snprintf_error(buflen, res))
+++ return -1;
+++ return res;
+++#endif /* CONFIG_SAE */
++ }
++
++ return -1;