blob: 859fdbf89bb64345075c7dc37d3e470f7cb1fd57 [file] [log] [blame]
developer7b43f2d2022-04-29 17:53:25 +08001--- a/hostapd/ctrl_iface.c
2+++ b/hostapd/ctrl_iface.c
3@@ -1584,6 +1584,19 @@ static int hostapd_ctrl_iface_get(struct
4 if (os_snprintf_error(buflen, res))
5 return -1;
6 return res;
7+ } else if (os_strcmp(cmd, "sae_group_capability") == 0) {
8+#ifdef CONFIG_SAE
9+ /* see sae_set_group() */
10+ res = os_snprintf(buf, buflen, "%s%s%s%s19 20 21",
11+ dh_groups_get(15) ? "15 ": "",
12+ dh_groups_get(16) ? "16 ": "",
13+ dh_groups_get(17) ? "17 ": "",
14+ dh_groups_get(18) ? "18 ": "");
15+
16+ if (os_snprintf_error(buflen, res))
17+ return -1;
18+ return res;
19+#endif /* CONFIG_SAE */
20 }
21
22 return -1;