[PATCH] mac80211: always set carrier status on open
authorMichael Wu <flamingice@sourmilk.net>
Sun, 20 May 2007 16:44:00 +0000 (09:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 May 2007 14:34:05 +0000 (10:34 -0400)
ieee80211_open should always set the carrier status since we may have set
it to off before.

Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211.c

index 145604abd08e16a2e65170987a13e153b5b9cb02..4e84f24fd439852e8473d70147227e82268f4aa0 100644 (file)
@@ -2474,6 +2474,8 @@ static int ieee80211_open(struct net_device *dev)
        if (sdata->type == IEEE80211_IF_TYPE_STA &&
            !local->user_space_mlme)
                netif_carrier_off(dev);
+       else
+               netif_carrier_on(dev);
 
        netif_start_queue(dev);
        return 0;