]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 11 Nov 2012 16:07:57 +0000 (16:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:21 +0000 (08:46 -0800)
commit77114d247c1e4b7f14ca5ffec27d49e9ec95d90a
treee15b07e1af53840a9aeeef95e6c1c8cc0ad623e2
parent2e75b5b00bb60311a16752e59fe9638ac5080ce9
staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer.

commit 70e227790d4ee4590023d8041a3485f8053593fc upstream.

The timer appears to run too fast/race on 64 bit systems.

Using msecs_to_jiffies seems to cause a deadlock on 64 bit.

A calculation of (MSecond * HZ) / 1000 appears to run satisfactory.

Change BSSIDInfoCount to u32.

After this patch the driver can be successfully connect on little endian 64/32 bit systems.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/wcmd.c
drivers/staging/vt6656/wpa2.h