aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2018-05-12 21:08:18 +0200
committerDaniel Golle <daniel@makrotopia.org>2018-05-14 09:48:58 +0200
commit6e0fa4a76db667d7f0c1d84a3af5017df26d3fad (patch)
tree8f0767bc33a3dfd200cbdf64667015e138ed352c /package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch
parent6aaeec666d0af4240b1d61f5654d91a53cf35a82 (diff)
downloadupstream-6e0fa4a76db667d7f0c1d84a3af5017df26d3fad.tar.gz
upstream-6e0fa4a76db667d7f0c1d84a3af5017df26d3fad.tar.bz2
upstream-6e0fa4a76db667d7f0c1d84a3af5017df26d3fad.zip
hostapd: fix mesh+AP
Fix encrypted (or DFS) AP+MESH interface combination in a way similar to how it's done for AP+STA and fix netifd shell script. Refresh patches while at it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch')
-rw-r--r--package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch21
1 files changed, 8 insertions, 13 deletions
diff --git a/package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch b/package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch
index 3bd6eaf340..bd28fb8de9 100644
--- a/package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch
+++ b/package/network/services/hostapd/patches/032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch
@@ -31,13 +31,11 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
wpa_supplicant/wpa_supplicant.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
-diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
-index ca893f942..8429cfd43 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
-@@ -2132,9 +2132,15 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
- if (pri_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR))
- return;
+@@ -2117,9 +2117,15 @@ void ibss_mesh_setup_freq(struct wpa_sup
+ if (!dfs_enabled)
+ return;
+ freq->channel = pri_chan->chan;
+
@@ -53,16 +51,16 @@ index ca893f942..8429cfd43 100644
#endif /* CONFIG_HT_OVERRIDES */
/* Check/setup HT40+/HT40- */
-@@ -2159,8 +2165,6 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
- if (sec_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR))
- return;
+@@ -2147,8 +2153,6 @@ void ibss_mesh_setup_freq(struct wpa_sup
+ if (!dfs_enabled)
+ return;
- freq->channel = pri_chan->chan;
-
if (ht40 == -1) {
if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS))
return;
-@@ -2204,6 +2208,7 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
+@@ -2192,6 +2196,7 @@ void ibss_mesh_setup_freq(struct wpa_sup
wpa_scan_results_free(scan_res);
}
@@ -70,7 +68,7 @@ index ca893f942..8429cfd43 100644
wpa_printf(MSG_DEBUG,
"IBSS/mesh: setup freq channel %d, sec_channel_offset %d",
freq->channel, freq->sec_channel_offset);
-@@ -2295,7 +2300,10 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
+@@ -2287,7 +2292,10 @@ void ibss_mesh_setup_freq(struct wpa_sup
}
} else if (ssid->max_oper_chwidth == VHT_CHANWIDTH_USE_HT) {
chwidth = VHT_CHANWIDTH_USE_HT;
@@ -82,6 +80,3 @@ index ca893f942..8429cfd43 100644
}
if (hostapd_set_freq_params(&vht_freq, mode->mode, freq->freq,
---
-2.17.0
-