wlcore: initialize per-link FW freed blocks correctly
authorArik Nemtsov <arik@wizery.com>
Tue, 27 Nov 2012 06:44:56 +0000 (08:44 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 5 Dec 2012 07:43:32 +0000 (09:43 +0200)
commitb50a62bb39c66e6ed5f1f581bb32644936f08cf3
tree94d4d0d33107af0140b68fdd6642e61dc54c768e
parent583f81644ab34a1314827a1dffc7fc8fbad7dc0f
wlcore: initialize per-link FW freed blocks correctly

When a link is allocated, sometimes the "freed packets" counter in FW
is non zero, but we always assumed it is. This caused us to incorrectly
account FW allocated blocks in some cases.

When operating in AP mode, this bug caused some stations to never
come back from PSM.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/cmd.c