From: Johannes Berg Date: Mon, 30 Jul 2012 17:48:09 +0000 (+0200) Subject: mac80211: enable WDS carrier only after adding station X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1411af156524ce42c2a7f989320c4484257f3ff5;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mac80211: enable WDS carrier only after adding station Enable the carrier on WDS type interfaces only after having added the station entry for the WDS peer so outgoing frames will find it. Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index c65a03ba809..2d6ac78971e 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -546,6 +546,8 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) case NL80211_IFTYPE_MESH_POINT: netif_carrier_off(dev); break; + case NL80211_IFTYPE_WDS: + break; default: netif_carrier_on(dev); } @@ -580,6 +582,7 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) } rate_control_rate_init(sta); + netif_carrier_on(dev); } /*