diff options
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 8ba69ae676ca..4807e5215a79 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -219,6 +219,7 @@ static int ieee80211_open(struct net_device *dev) | |||
219 | if (res) | 219 | if (res) |
220 | return res; | 220 | return res; |
221 | ieee80211_hw_config(local); | 221 | ieee80211_hw_config(local); |
222 | ieee80211_led_radio(local, local->hw.conf.radio_enabled); | ||
222 | } | 223 | } |
223 | 224 | ||
224 | switch (sdata->type) { | 225 | switch (sdata->type) { |
@@ -392,6 +393,8 @@ static int ieee80211_stop(struct net_device *dev) | |||
392 | if (local->ops->stop) | 393 | if (local->ops->stop) |
393 | local->ops->stop(local_to_hw(local)); | 394 | local->ops->stop(local_to_hw(local)); |
394 | 395 | ||
396 | ieee80211_led_radio(local, 0); | ||
397 | |||
395 | tasklet_disable(&local->tx_pending_tasklet); | 398 | tasklet_disable(&local->tx_pending_tasklet); |
396 | tasklet_disable(&local->tasklet); | 399 | tasklet_disable(&local->tasklet); |
397 | } | 400 | } |