]> git.karo-electronics.de Git - karo-tx-linux.git/commit
carl9170: Fix memory accounting when sta is in power-save mode.
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>
Thu, 23 Feb 2012 15:53:34 +0000 (16:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:40 +0000 (12:31 -0700)
commit273c20d42332bbbf368a0c61c330055b5fd695dc
treeedd6b48ba521cd730b46fe97e0d15b8f15da29c0
parent139e7860c91207f954a87149a8d64eddbbd73bd8
carl9170: Fix memory accounting when sta is in power-save mode.

commit 992d52529d7840236d3059b51c15d5eb9e81a869 upstream.

On Access Point mode, when transmitting a packet, if the destination
station is in powersave mode, we abort transmitting the packet to the
device queue, but we do not reclaim the allocated memory.  Given enough
packets, we can go in a state where there is no packet on the device
queue, but we think the device has no memory left, so no packet gets
transmitted, connections breaks and the AP stops working.

This undo the allocation done in the TX path when the station is in
power-save mode.

Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/carl9170/tx.c