diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2010-08-30 15:14:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-31 14:22:24 -0400 |
commit | 0e3afe5b20c4ccdeff5178c62b557a917945a828 (patch) | |
tree | 737b0fe01751e65e78dcbed46f9bb21b653de0ee /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | e0540879db337b18ef7c580234038ff62c8cd381 (diff) |
rt2x00: Correctly kill beacon queue
USB devices upload their beacon and then automatically send
it out every beacon interval. However when killing a TX queue
we only kill the URB and not the actual transmission of the beacon.
This will reset the Beacon register to prevent any beacons from
being transmitted.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@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 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 71d8d821c4e1..a161e9e33b73 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1196,6 +1196,14 @@ static int rt2500usb_get_tx_data_len(struct queue_entry *entry) | |||
1196 | return length; | 1196 | return length; |
1197 | } | 1197 | } |
1198 | 1198 | ||
1199 | static void rt2500usb_kill_tx_queue(struct data_queue *queue) | ||
1200 | { | ||
1201 | if (queue->qid == QID_BEACON) | ||
1202 | rt2500usb_register_write(queue->rt2x00dev, TXRX_CSR19, 0); | ||
1203 | |||
1204 | rt2x00usb_kill_tx_queue(queue); | ||
1205 | } | ||
1206 | |||
1199 | /* | 1207 | /* |
1200 | * RX control handlers | 1208 | * RX control handlers |
1201 | */ | 1209 | */ |
@@ -1794,7 +1802,7 @@ static const struct rt2x00lib_ops rt2500usb_rt2x00_ops = { | |||
1794 | .write_beacon = rt2500usb_write_beacon, | 1802 | .write_beacon = rt2500usb_write_beacon, |
1795 | .get_tx_data_len = rt2500usb_get_tx_data_len, | 1803 | .get_tx_data_len = rt2500usb_get_tx_data_len, |
1796 | .kick_tx_queue = rt2x00usb_kick_tx_queue, | 1804 | .kick_tx_queue = rt2x00usb_kick_tx_queue, |
1797 | .kill_tx_queue = rt2x00usb_kill_tx_queue, | 1805 | .kill_tx_queue = rt2500usb_kill_tx_queue, |
1798 | .fill_rxdone = rt2500usb_fill_rxdone, | 1806 | .fill_rxdone = rt2500usb_fill_rxdone, |
1799 | .config_shared_key = rt2500usb_config_key, | 1807 | .config_shared_key = rt2500usb_config_key, |
1800 | .config_pairwise_key = rt2500usb_config_key, | 1808 | .config_pairwise_key = rt2500usb_config_key, |