]> git.baikalelectronics.ru Git - kernel.git/commit
orinoco: correct timeout logic in __orinoco_hw_set_tkip_key()
authorPavel Roskin <proski@gnu.org>
Fri, 10 Apr 2009 01:41:05 +0000 (21:41 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 16 Apr 2009 14:39:17 +0000 (10:39 -0400)
commit2c9f4e9b3d2d44c503956317e633e93540344bfb
tree314ba52fbd244015f0e8ce2864c1c2b7117e29c0
parent6e42e3c240c5484fe90570bb2113ca50c7abe3dc
orinoco: correct timeout logic in __orinoco_hw_set_tkip_key()

If the value read from HERMES_RID_TXQUEUEEMPTY becomes 0 after exactly
100 readings, we wrongly consider it a timeout.  Rewrite the clever
while loop as a for loop that does the right thing and looks simpler.

Reported by Juha Leppanen <juha_motorsportcom@luukku.com>

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/hw.c