wl12xx: handle wrap-around overflow in released Tx blocks FW counter
authorArik Nemtsov <arik@wizery.com>
Sun, 14 Aug 2011 10:17:34 +0000 (13:17 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 22 Aug 2011 09:35:30 +0000 (12:35 +0300)
commitbdf91cfae66dd76a093c75cac8f6ada12fd21b83
tree58f07c4eda2091cc51666093a9318de141e6b361
parent742246f8bc16c3a1a556c68ca2fabca162d14c24
wl12xx: handle wrap-around overflow in released Tx blocks FW counter

When the FW Tx released blocks counter wraps around, we should correct
our calculation of released blocks. Otherwise we add a large negative
figure to our driver freed blocks counter

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c