diff options
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 5940e69fa33..d134bd79972 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -277,11 +277,6 @@ static int ieee80211_open(struct net_device *dev) | |||
277 | } | 277 | } |
278 | } | 278 | } |
279 | 279 | ||
280 | if (local->open_count == 0) { | ||
281 | tasklet_enable(&local->tx_pending_tasklet); | ||
282 | tasklet_enable(&local->tasklet); | ||
283 | } | ||
284 | |||
285 | /* | 280 | /* |
286 | * set_multicast_list will be invoked by the networking core | 281 | * set_multicast_list will be invoked by the networking core |
287 | * which will check whether any increments here were done in | 282 | * which will check whether any increments here were done in |
@@ -552,11 +547,9 @@ static int ieee80211_stop(struct net_device *dev) | |||
552 | ieee80211_recalc_ps(local, -1); | 547 | ieee80211_recalc_ps(local, -1); |
553 | 548 | ||
554 | if (local->open_count == 0) { | 549 | if (local->open_count == 0) { |
550 | ieee80211_clear_tx_pending(local); | ||
555 | ieee80211_stop_device(local); | 551 | ieee80211_stop_device(local); |
556 | 552 | ||
557 | tasklet_disable(&local->tx_pending_tasklet); | ||
558 | tasklet_disable(&local->tasklet); | ||
559 | |||
560 | /* no reconfiguring after stop! */ | 553 | /* no reconfiguring after stop! */ |
561 | hw_reconf_flags = 0; | 554 | hw_reconf_flags = 0; |
562 | } | 555 | } |