diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index e8c91fb71a52..92b725263578 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -237,6 +237,13 @@ static void rt2x00lib_link_tuner(struct work_struct *work) | |||
237 | container_of(work, struct rt2x00_dev, link.work.work); | 237 | container_of(work, struct rt2x00_dev, link.work.work); |
238 | 238 | ||
239 | /* | 239 | /* |
240 | * When the radio is shutting down we should | ||
241 | * immediately cease all link tuning. | ||
242 | */ | ||
243 | if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags)) | ||
244 | return; | ||
245 | |||
246 | /* | ||
240 | * Update statistics. | 247 | * Update statistics. |
241 | */ | 248 | */ |
242 | rt2x00dev->ops->lib->link_stats(rt2x00dev); | 249 | rt2x00dev->ops->lib->link_stats(rt2x00dev); |