summaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/patches/100-mesh_mode_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-28 17:20:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-28 17:20:10 +0000
commit18b2f2d6943342bda498dfdbdf25d3ba6265c408 (patch)
tree382af5a05e944f23684aaf43a5eebb0bb15bcaba /package/network/services/hostapd/patches/100-mesh_mode_fix.patch
parentb4ef1fca4836986d2e3257493648b75b07510193 (diff)
downloadmtk-20170518-18b2f2d6943342bda498dfdbdf25d3ba6265c408.zip
mtk-20170518-18b2f2d6943342bda498dfdbdf25d3ba6265c408.tar.gz
mtk-20170518-18b2f2d6943342bda498dfdbdf25d3ba6265c408.tar.bz2
hostapd: fix mesh interface bridge handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48529
Diffstat (limited to 'package/network/services/hostapd/patches/100-mesh_mode_fix.patch')
-rw-r--r--package/network/services/hostapd/patches/100-mesh_mode_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/100-mesh_mode_fix.patch b/package/network/services/hostapd/patches/100-mesh_mode_fix.patch
new file mode 100644
index 0000000..1be7559
--- /dev/null
+++ b/package/network/services/hostapd/patches/100-mesh_mode_fix.patch
@@ -0,0 +1,12 @@
+--- a/src/drivers/driver_nl80211.c
++++ b/src/drivers/driver_nl80211.c
+@@ -2262,7 +2262,8 @@ wpa_driver_nl80211_finish_drv_init(struc
+
+ if (drv->hostapd || bss->static_ap)
+ nlmode = NL80211_IFTYPE_AP;
+- else if (bss->if_dynamic)
++ else if (bss->if_dynamic ||
++ nl80211_get_ifmode(bss) == NL80211_IFTYPE_MESH_POINT)
+ nlmode = nl80211_get_ifmode(bss);
+ else
+ nlmode = NL80211_IFTYPE_STATION;