]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: fix queue timeout checks
authorJohannes Stezenbach <js@sig21.net>
Mon, 18 Apr 2011 13:29:38 +0000 (15:29 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Apr 2011 19:39:30 +0000 (15:39 -0400)
commitde31aaf0aa33675cec98a08bc1c11be24d503717
treef441df9a73990fd0badb57e5159df2b1257309f0
parent3f66fdf733e0166885baf80179ab4d4f1e4862af
rt2x00: fix queue timeout checks

Add a timestamp to each queue entry which is updated whenever
the status of the entry changes, and remove the per-queue
timestamps.  The previous check was incorrect and caused both
false positives and false negatives.

With the corrected check it comes apparent that the TX status
usually times out on rt2800usb unless there is sufficient traffic
(i.e. the next TX will complete the previous TX status).

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00lib.h
drivers/net/wireless/rt2x00/rt2x00queue.c
drivers/net/wireless/rt2x00/rt2x00queue.h
drivers/net/wireless/rt2x00/rt2x00usb.c