diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index f1fd9916e020..aeb4cc51bd3b 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -1540,7 +1540,13 @@ out: | |||
1540 | int wl1271_tx_dummy_packet(struct wl1271 *wl) | 1540 | int wl1271_tx_dummy_packet(struct wl1271 *wl) |
1541 | { | 1541 | { |
1542 | unsigned long flags; | 1542 | unsigned long flags; |
1543 | int q = wl1271_tx_get_queue(skb_get_queue_mapping(wl->dummy_packet)); | 1543 | int q; |
1544 | |||
1545 | /* no need to queue a new dummy packet if one is already pending */ | ||
1546 | if (test_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags)) | ||
1547 | return 0; | ||
1548 | |||
1549 | q = wl1271_tx_get_queue(skb_get_queue_mapping(wl->dummy_packet)); | ||
1544 | 1550 | ||
1545 | spin_lock_irqsave(&wl->wl_lock, flags); | 1551 | spin_lock_irqsave(&wl->wl_lock, flags); |
1546 | set_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags); | 1552 | set_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags); |