Skip to content

Commit

Permalink
mac80211: enable WDS carrier only after adding station
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Jul 31, 2012
1 parent c405c62 commit 1411af1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 1411af1

Please sign in to comment.