mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 07:04:10 +08:00
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 <johannes.berg@intel.com>
This commit is contained in:
parent
c405c6298e
commit
1411af1565
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user