diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2008-06-06 16:47:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:17:56 -0400 |
commit | f019d51410a9b61278eeff811a1ca11d2a905241 (patch) | |
tree | 3f038d3e8b7301c33df31344307c7a3180227e51 /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | 565a019ac635d4f5140a8c4da21387c3b2b28fb9 (diff) |
rt2x00: Implement rt2x00usb_kick_tx_queue()
rt2x00usb_kick_tx_queue() will loop over all entries
within the INDEX_DONE->INDEX range and kick each entry
which is pending to be kicked. This makes the kick_tx_queue
approach work the same as with the PCI drivers which
will allow for more code generalisation into rt2x00lib.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 0d51b748c5b7..6abb4c5338f5 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1116,8 +1116,10 @@ static void rt2500usb_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | |||
1116 | { | 1116 | { |
1117 | u16 reg; | 1117 | u16 reg; |
1118 | 1118 | ||
1119 | if (queue != QID_BEACON) | 1119 | if (queue != QID_BEACON) { |
1120 | rt2x00usb_kick_tx_queue(rt2x00dev, queue); | ||
1120 | return; | 1121 | return; |
1122 | } | ||
1121 | 1123 | ||
1122 | rt2500usb_register_read(rt2x00dev, TXRX_CSR19, ®); | 1124 | rt2500usb_register_read(rt2x00dev, TXRX_CSR19, ®); |
1123 | if (!rt2x00_get_field16(reg, TXRX_CSR19_BEACON_GEN)) { | 1125 | if (!rt2x00_get_field16(reg, TXRX_CSR19_BEACON_GEN)) { |