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 <nbd@nbd.name>
This commit is contained in:
parent
8468189e90
commit
4fe726e2d7
1 changed files with 2 additions and 1 deletions
|
@ -2332,7 +2332,8 @@ wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv,
|
||||||
|
|
||||||
if (drv->hostapd || bss->static_ap)
|
if (drv->hostapd || bss->static_ap)
|
||||||
nlmode = NL80211_IFTYPE_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);
|
nlmode = nl80211_get_ifmode(bss);
|
||||||
else
|
else
|
||||||
nlmode = NL80211_IFTYPE_STATION;
|
nlmode = NL80211_IFTYPE_STATION;
|
||||||
|
|
Loading…
Reference in a new issue