diff options
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_module.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_module.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_module.c b/net/ieee80211/softmac/ieee80211softmac_module.c index 79ef959a2c11..ea4a19e1122c 100644 --- a/net/ieee80211/softmac/ieee80211softmac_module.c +++ b/net/ieee80211/softmac/ieee80211softmac_module.c | |||
@@ -40,21 +40,10 @@ struct net_device *alloc_ieee80211softmac(int sizeof_priv) | |||
40 | softmac->txrates.default_rate = IEEE80211_CCK_RATE_1MB; | 40 | softmac->txrates.default_rate = IEEE80211_CCK_RATE_1MB; |
41 | softmac->txrates.default_fallback = IEEE80211_CCK_RATE_1MB; | 41 | softmac->txrates.default_fallback = IEEE80211_CCK_RATE_1MB; |
42 | 42 | ||
43 | /* should we also assign softmac->mgmt_xmit here so | 43 | /* to start with, we can't send anything ... */ |
44 | * that it is always valid? If so, we probably want | 44 | netif_carrier_off(dev); |
45 | * to define a new function for that which just | ||
46 | * wraps ieee80211_tx_frame | ||
47 | */ | ||
48 | 45 | ||
49 | /* until associated, we're not ready */ | ||
50 | dev->flags &= ~IFF_RUNNING; | ||
51 | |||
52 | return dev; | 46 | return dev; |
53 | |||
54 | err_free_ieee80211: | ||
55 | free_ieee80211(dev); | ||
56 | |||
57 | return NULL; | ||
58 | } | 47 | } |
59 | 48 | ||
60 | /* Clears the pending work queue items, stops all scans, etc. */ | 49 | /* Clears the pending work queue items, stops all scans, etc. */ |