aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00usb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c
index 68d87f09e054..3080969ae5b3 100644
--- a/drivers/net/wireless/rt2x00/rt2x00usb.c
+++ b/drivers/net/wireless/rt2x00/rt2x00usb.c
@@ -345,8 +345,11 @@ void rt2x00usb_disable_radio(struct rt2x00_dev *rt2x00dev)
345 } 345 }
346 346
347 /* 347 /*
348 * Kill guardian urb. 348 * Kill guardian urb (if required by driver).
349 */ 349 */
350 if (!test_bit(DRIVER_REQUIRE_BEACON_GUARD, &rt2x00dev->flags))
351 return;
352
350 for (i = 0; i < rt2x00dev->bcn->limit; i++) { 353 for (i = 0; i < rt2x00dev->bcn->limit; i++) {
351 bcn_priv = rt2x00dev->bcn->entries[i].priv_data; 354 bcn_priv = rt2x00dev->bcn->entries[i].priv_data;
352 if (bcn_priv->guardian_urb) 355 if (bcn_priv->guardian_urb)