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>
Tue, 13 Nov 2012 20:51:32 +0000 (12:51 -0800)
commit70e227790d4ee4590023d8041a3485f8053593fc
tree132236aedda6ba45686f2ed587e5c844f0f7b3c4
parent1d651be13f59ddf706283eb61f2590aedd44cd2d
staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer.

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