提交 1411af15 编写于 作者: J Johannes Berg

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: NJohannes Berg <johannes.berg@intel.com>
上级 c405c629
...@@ -546,6 +546,8 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) ...@@ -546,6 +546,8 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)
case NL80211_IFTYPE_MESH_POINT: case NL80211_IFTYPE_MESH_POINT:
netif_carrier_off(dev); netif_carrier_off(dev);
break; break;
case NL80211_IFTYPE_WDS:
break;
default: default:
netif_carrier_on(dev); netif_carrier_on(dev);
} }
...@@ -580,6 +582,7 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) ...@@ -580,6 +582,7 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)
} }
rate_control_rate_init(sta); rate_control_rate_init(sta);
netif_carrier_on(dev);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册