]> git.kernelconcepts.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:43:56 +0000 (08:43 -0800)
commitf125f803570b6e617ea417d08091703e81951d87
tree1c5f84226629a16c7b933e47c3fa6985fa0b2645
parentafaac0d6cd73f303df1e456905de6a4364d2a81d
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