hostapd: update mesh DFS patches and add mesh HE support
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 017-mesh-fix-mesh_oom-test.patch
1 From 928da9a270deaf4409aee4d87a33a6f61b56c136 Mon Sep 17 00:00:00 2001
2 From: Markus Theil <markus.theil@tu-ilmenau.de>
3 Date: Tue, 30 Jun 2020 14:19:05 +0200
4 Subject: [PATCH 17/19] mesh: fix mesh_oom test
5
6 Only change freq params, if ifmsh->freq is set initially, which only
7 happens if hostapd_get_hw_features in setup_interface2 succeeds.
8
9 Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
10 ---
11 wpa_supplicant/mesh.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/wpa_supplicant/mesh.c
15 +++ b/wpa_supplicant/mesh.c
16 @@ -218,7 +218,7 @@ static int wpas_mesh_complete(struct wpa
17 * inspect if channel's been changed since initialized.
18 * i.e. DFS radar detection
19 */
20 - if (ifmsh->freq != params->freq.freq) {
21 + if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) {
22 wpa_s->assoc_freq = ifmsh->freq;
23 ssid->frequency = ifmsh->freq;
24 struct he_capabilities *he_capab = NULL;