hostapd: fix mesh interface bridge handling
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 100-mesh_mode_fix.patch
1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -2262,7 +2262,8 @@ wpa_driver_nl80211_finish_drv_init(struc
4
5 if (drv->hostapd || bss->static_ap)
6 nlmode = NL80211_IFTYPE_AP;
7 - else if (bss->if_dynamic)
8 + else if (bss->if_dynamic ||
9 + nl80211_get_ifmode(bss) == NL80211_IFTYPE_MESH_POINT)
10 nlmode = nl80211_get_ifmode(bss);
11 else
12 nlmode = NL80211_IFTYPE_STATION;