wl12xx: AP-mode - count free FW TX blocks per link
authorArik Nemtsov <arik@wizery.com>
Tue, 22 Feb 2011 22:22:30 +0000 (00:22 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 23 Feb 2011 09:18:46 +0000 (11:18 +0200)
commit09039f42a24084c10e7761ab28ef22932c62a46f
tree09c46d96003ef58080c3559158c94a7c5dd0b3b7
parent409622ecc2a3b618b31b1894ed6360fbdca95d62
wl12xx: AP-mode - count free FW TX blocks per link

Count the number of FW TX blocks allocated per link. We add blocks to a
link counter when allocated for a TX descriptor. We remove blocks
according to counters in fw_status indicating the number of freed blocks
in FW. These counters are polled after each IRQ.

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