hostapd: update mesh DFS patches and add mesh HE support
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 007-dfs-use-helper-functions-for-vht-he-parameters.patch
1 From 6eacc14904b6f09a1490e697c01adf5dc56c4905 Mon Sep 17 00:00:00 2001
2 From: Markus Theil <markus.theil@tu-ilmenau.de>
3 Date: Tue, 30 Jun 2020 13:53:23 +0200
4 Subject: [PATCH 07/19] dfs: use helper functions for vht/he parameters
5
6 Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
7 ---
8 src/ap/dfs.c | 6 ++++--
9 1 file changed, 4 insertions(+), 2 deletions(-)
10
11 --- a/src/ap/dfs.c
12 +++ b/src/ap/dfs.c
13 @@ -955,10 +955,12 @@ dfs_downgrade_bandwidth(struct hostapd_i
14 if (*skip_radar) {
15 *skip_radar = 0;
16 } else {
17 - if (iface->conf->vht_oper_chwidth == CHANWIDTH_USE_HT)
18 + int oper_chwidth = hostapd_get_oper_chwidth(iface->conf);
19 +
20 + if (oper_chwidth == CHANWIDTH_USE_HT)
21 break;
22 *skip_radar = 1;
23 - iface->conf->vht_oper_chwidth--;
24 + hostapd_set_oper_chwidth(iface->conf, oper_chwidth - 1);
25 }
26 }
27