diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-04-13 01:56:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-13 15:24:16 -0400 |
commit | 84c9e164468bd707e52b440e1c34bc3c85299332 (patch) | |
tree | 3abb317396af9864ccbe185f2d204471c50d89db /drivers/net/wireless/ath/ath9k/htc_hst.h | |
parent | e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872 (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.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_hst.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.h b/drivers/net/wireless/ath/ath9k/htc_hst.h index 191e3c0837a6..cb9174ade53e 100644 --- a/drivers/net/wireless/ath/ath9k/htc_hst.h +++ b/drivers/net/wireless/ath/ath9k/htc_hst.h | |||
@@ -35,6 +35,7 @@ struct ath9k_htc_hif { | |||
35 | 35 | ||
36 | void (*start) (void *hif_handle); | 36 | void (*start) (void *hif_handle); |
37 | void (*stop) (void *hif_handle); | 37 | void (*stop) (void *hif_handle); |
38 | void (*sta_drain) (void *hif_handle, u8 idx); | ||
38 | int (*send) (void *hif_handle, u8 pipe, struct sk_buff *buf); | 39 | int (*send) (void *hif_handle, u8 pipe, struct sk_buff *buf); |
39 | }; | 40 | }; |
40 | 41 | ||
@@ -209,6 +210,7 @@ int htc_send_epid(struct htc_target *target, struct sk_buff *skb, | |||
209 | enum htc_endpoint_id epid); | 210 | enum htc_endpoint_id epid); |
210 | void htc_stop(struct htc_target *target); | 211 | void htc_stop(struct htc_target *target); |
211 | void htc_start(struct htc_target *target); | 212 | void htc_start(struct htc_target *target); |
213 | void htc_sta_drain(struct htc_target *target, u8 idx); | ||
212 | 214 | ||
213 | void ath9k_htc_rx_msg(struct htc_target *htc_handle, | 215 | void ath9k_htc_rx_msg(struct htc_target *htc_handle, |
214 | struct sk_buff *skb, u32 len, u8 pipe_id); | 216 | struct sk_buff *skb, u32 len, u8 pipe_id); |