summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMichael Wu <flamingice@sourmilk.net>2007-05-20 18:44:00 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-05-29 16:34:05 +0200
commit52fb24cd83bdd6a1dcbd4cf4b3f5cafb741b5552 (patch)
treef2c096f7015bd1523fb1652f4c842f42b7069330 /net
parent[PATCH] mac80211: fix memory leak when defrag fragments (diff)
downloadlinux-52fb24cd83bdd6a1dcbd4cf4b3f5cafb741b5552.tar.xz
linux-52fb24cd83bdd6a1dcbd4cf4b3f5cafb741b5552.zip
[PATCH] mac80211: always set carrier status on open
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>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/ieee80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 145604abd08e..4e84f24fd439 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -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;