diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-05-08 17:40:24 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-10 14:56:48 -0400 |
commit | d61cb26696e19494c049297def6c8f37d9e2f534 (patch) | |
tree | 29d4f3fa8a6cb3ad61112c0791a8cbe659a53602 /drivers/net/wireless/rt2x00/rt2x00queue.c | |
parent | 2de64dd22d0390688b853788dcadee3c0ad9e518 (diff) |
rt2x00: Clean up all driver's kick_tx_queue callback functions.
All of the driver's kick_tx_queue callback functions treat the TX queue
for beacons in a special manner.
Clean this up by integrating the kicking of the beacon queue into the
write_beacon callback function, and let the generic code no longer call
the kick_tx_queue callback function when updating the beacon.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 59d9459acfa..949aaad0cbd 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -602,12 +602,9 @@ int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev, | |||
602 | rt2x00queue_write_tx_descriptor(intf->beacon, &txdesc); | 602 | rt2x00queue_write_tx_descriptor(intf->beacon, &txdesc); |
603 | 603 | ||
604 | /* | 604 | /* |
605 | * Send beacon to hardware. | 605 | * Send beacon to hardware and enable beacon genaration.. |
606 | * Also enable beacon generation, which might have been disabled | ||
607 | * by the driver during the config_beacon() callback function. | ||
608 | */ | 606 | */ |
609 | rt2x00dev->ops->lib->write_beacon(intf->beacon); | 607 | rt2x00dev->ops->lib->write_beacon(intf->beacon); |
610 | rt2x00dev->ops->lib->kick_tx_queue(rt2x00dev, QID_BEACON); | ||
611 | 608 | ||
612 | mutex_unlock(&intf->beacon_skb_mutex); | 609 | mutex_unlock(&intf->beacon_skb_mutex); |
613 | 610 | ||