wl12xx: don't queue a new dummy packet if one is already pending
authorArik Nemtsov <arik@wizery.com>
Sun, 28 Aug 2011 12:11:57 +0000 (15:11 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 14 Sep 2011 08:47:26 +0000 (11:47 +0300)
commit14623787abd1217f4c48f128fd4dc03e238265fe
treed01742cdd22b9c4ae46fd0965b201ebd133bfd5c
parent9487775c5b785d7c1e8182825c9ff9cf5e88149e
wl12xx: don't queue a new dummy packet if one is already pending

The firmware only asks for one dummy packet at a time, but sometimes we
are unable to provide it before a FW timer expires. When this happens,
the FW will re-request the dummy packet. If a packet is still queued in
the driver queues, do nothing in this case.

This prevents spurious dummy packets from clogging up the VO AC.

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