aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2018-04-12 13:07:22 +0200
committerDaniel Golle <daniel@makrotopia.org>2018-04-13 03:27:01 +0200
commitd88934aa5aa9b61ec66a6f7ae0fb61d1ef889884 (patch)
treeaa77211ec0f1b6add8ea048d789fb1061f9089b5 /package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch
parentb28e995fc736a78adda9e3c554653c795bd408b0 (diff)
downloadupstream-d88934aa5aa9b61ec66a6f7ae0fb61d1ef889884.tar.gz
upstream-d88934aa5aa9b61ec66a6f7ae0fb61d1ef889884.tar.bz2
upstream-d88934aa5aa9b61ec66a6f7ae0fb61d1ef889884.zip
hostapd: update to git snapshot of 2018-04-09
And import patchset to allow 802.11s mesh on DFS channels, see also http://lists.infradead.org/pipermail/hostap/2018-April/038418.html Fix sae_password for encryption mesh (sent upstream as well). Also refreshed existing patches and fixed 463-add-mcast_rate-to-11s. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch')
-rw-r--r--package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch b/package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch
new file mode 100644
index 0000000000..da47aa8d2c
--- /dev/null
+++ b/package/network/services/hostapd/patches/0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch
@@ -0,0 +1,36 @@
+From 143809f1e60f749a5a5c72735ffa8eb99d602cc1 Mon Sep 17 00:00:00 2001
+From: Peter Oh <peter.oh@bowerswilkins.com>
+Date: Thu, 12 Apr 2018 02:49:05 -0700
+Subject: [PATCH 08/15] mesh: set interface type to mesh before setting
+ interface
+
+Correct interface type is required to start DFS CAC that can be
+triggered during interface setup.
+
+Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
+---
+ wpa_supplicant/mesh.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+--- a/wpa_supplicant/mesh.c
++++ b/wpa_supplicant/mesh.c
+@@ -336,14 +336,14 @@ static int wpa_supplicant_mesh_init(stru
+
+ wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
+
+- if (hostapd_setup_interface(ifmsh)) {
+- wpa_printf(MSG_ERROR,
+- "Failed to initialize hostapd interface for mesh");
++ if (wpa_drv_init_mesh(wpa_s)) {
++ wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
+ return -1;
+ }
+
+- if (wpa_drv_init_mesh(wpa_s)) {
+- wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
++ if (hostapd_setup_interface(ifmsh)) {
++ wpa_printf(MSG_ERROR,
++ "Failed to initialize hostapd interface for mesh");
+ return -1;
+ }
+