mac80211: enable WDS carrier only after adding station

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:39 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=1411af156524ce42c2a7f989320c4484257f3ff5
Commit:     1411af156524ce42c2a7f989320c4484257f3ff5
Parent:     c405c6298eacd423098afacf6020ddbda1b0378b
Author:     Johannes Berg <johannes.berg at intel.com>
AuthorDate: Mon Jul 30 19:48:09 2012 +0200
Committer:  Johannes Berg <johannes.berg at intel.com>
CommitDate: Tue Jul 31 16:19:01 2012 +0200

    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 at intel.com>
---
 net/mac80211/iface.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index c65a03b..2d6ac78 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);
 	}
 
 	/*



More information about the linux-mtd-cvs mailing list