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:50:52 +0000 (08:50 -0800)
commite239d2d4ea630ddec326a99252888b867d196f5b
tree3a74ca8aabc6c3203576d01956de8a1b08c5bd96
parent82b2729dac2da860dd30d46753ac18ba7ad8888f
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