aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_hst.c
diff options
context:
space:
mode:
authorSujith Manoharan <Sujith.Manoharan@atheros.com>2011-04-13 01:56:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-13 15:24:16 -0400
commit84c9e164468bd707e52b440e1c34bc3c85299332 (patch)
tree3abb317396af9864ccbe185f2d204471c50d89db /drivers/net/wireless/ath/ath9k/htc_hst.c
parente1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872 (diff)
ath9k_htc: Drain packets on station removal
When a station entry is removed, there could still be pending packets destined for that station in the HIF layer. Sending these to the target is not necessary, so drain them in the driver itself. Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_hst.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_hst.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c
index 7ced8ab1ae4c..5c76352b1319 100644
--- a/drivers/net/wireless/ath/ath9k/htc_hst.c
+++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
@@ -310,6 +310,11 @@ void htc_start(struct htc_target *target)
310 target->hif->start(target->hif_dev); 310 target->hif->start(target->hif_dev);
311} 311}
312 312
313void htc_sta_drain(struct htc_target *target, u8 idx)
314{
315 target->hif->sta_drain(target->hif_dev, idx);
316}
317
313void ath9k_htc_txcompletion_cb(struct htc_target *htc_handle, 318void ath9k_htc_txcompletion_cb(struct htc_target *htc_handle,
314 struct sk_buff *skb, bool txok) 319 struct sk_buff *skb, bool txok)
315{ 320{