From 4fe726e2d784199cedb7cdf4c8dc592a22fc2380 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 26 Jul 2016 13:29:36 +0200 Subject: [PATCH] nl80211: Do not switch interface to station mode when using mesh This fixes issues with adding mesh interfaces to a bridge. Signed-off-by: Felix Fietkau --- src/drivers/driver_nl80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 7743bd521..339101204 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2332,7 +2332,8 @@ wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv, 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;