developer | 685162e | 2021-12-09 09:55:13 +0800 | [diff] [blame] | 1 | 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 |
developer | ac8397b | 2021-11-25 15:14:03 +0800 | [diff] [blame] | 2 | new file mode 100644 |
developer | 645ffdc | 2021-12-01 18:05:59 +0800 | [diff] [blame] | 3 | index 0000000..859fdbf |
developer | ac8397b | 2021-11-25 15:14:03 +0800 | [diff] [blame] | 4 | --- /dev/null |
developer | 685162e | 2021-12-09 09:55:13 +0800 | [diff] [blame] | 5 | +++ b/package/network/services/hostapd/patches/902-2021-print-sae-groups-by-hostapd-ctrl.patch |
developer | 645ffdc | 2021-12-01 18:05:59 +0800 | [diff] [blame] | 6 | @@ -0,0 +1,22 @@ |
developer | ac8397b | 2021-11-25 15:14:03 +0800 | [diff] [blame] | 7 | +--- a/hostapd/ctrl_iface.c |
| 8 | ++++ b/hostapd/ctrl_iface.c |
developer | 645ffdc | 2021-12-01 18:05:59 +0800 | [diff] [blame] | 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 */ |
developer | ac8397b | 2021-11-25 15:14:03 +0800 | [diff] [blame] | 26 | + } |
| 27 | + |
developer | 645ffdc | 2021-12-01 18:05:59 +0800 | [diff] [blame] | 28 | + return -1; |