developer | 1a1492f | 2022-02-11 14:16:55 +0800 | [diff] [blame] | 1 | diff --git a/package/network/services/hostapd/patches/911-master-print-sae-groups-by-hostapd-ctrl.patch b/package/network/services/hostapd/patches/911-master-print-sae-groups-by-hostapd-ctrl.patch |
| 2 | new file mode 100644 |
| 3 | index 0000000..859fdbf |
| 4 | --- /dev/null |
| 5 | +++ b/package/network/services/hostapd/patches/911-master-print-sae-groups-by-hostapd-ctrl.patch |
| 6 | @@ -0,0 +1,22 @@ |
| 7 | +--- a/hostapd/ctrl_iface.c |
| 8 | ++++ b/hostapd/ctrl_iface.c |
| 9 | +@@ -1584,6 +1584,19 @@ static int hostapd_ctrl_iface_get(struct |
| 10 | + if (os_snprintf_error(buflen, res)) |
| 11 | + return -1; |
| 12 | + return res; |
| 13 | ++ } else if (os_strcmp(cmd, "sae_group_capability") == 0) { |
| 14 | ++#ifdef CONFIG_SAE |
| 15 | ++ /* see sae_set_group() */ |
| 16 | ++ res = os_snprintf(buf, buflen, "%s%s%s%s19 20 21", |
| 17 | ++ dh_groups_get(15) ? "15 ": "", |
| 18 | ++ dh_groups_get(16) ? "16 ": "", |
| 19 | ++ dh_groups_get(17) ? "17 ": "", |
| 20 | ++ dh_groups_get(18) ? "18 ": ""); |
| 21 | ++ |
| 22 | ++ if (os_snprintf_error(buflen, res)) |
| 23 | ++ return -1; |
| 24 | ++ return res; |
| 25 | ++#endif /* CONFIG_SAE */ |
| 26 | + } |
| 27 | + |
| 28 | + return -1; |