diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-25 10:15:22 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-26 09:36:45 -0400 |
commit | 63de111257cdd04ebffc5ad873447ada2901a29e (patch) | |
tree | f56b9115cd3c78a2b63dabd49bf95fc328202f26 /drivers/net | |
parent | 6b42d308044854b39963cc713d9ed60d47f836fb (diff) |
ath6kl: Add tx_complete() to struct htc_ep_callbacks
This is needed by the USB code. Also while at it replace one void pointer
with a properly typed pointer.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/core.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/txrx.c | 5 |
4 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/core.h b/drivers/net/wireless/ath/ath6kl/core.h index a29a3494dcc..f1ce00314a9 100644 --- a/drivers/net/wireless/ath/ath6kl/core.h +++ b/drivers/net/wireless/ath/ath6kl/core.h | |||
@@ -754,7 +754,8 @@ void init_netdev(struct net_device *dev); | |||
754 | void ath6kl_cookie_init(struct ath6kl *ar); | 754 | void ath6kl_cookie_init(struct ath6kl *ar); |
755 | void ath6kl_cookie_cleanup(struct ath6kl *ar); | 755 | void ath6kl_cookie_cleanup(struct ath6kl *ar); |
756 | void ath6kl_rx(struct htc_target *target, struct htc_packet *packet); | 756 | void ath6kl_rx(struct htc_target *target, struct htc_packet *packet); |
757 | void ath6kl_tx_complete(void *context, struct list_head *packet_queue); | 757 | void ath6kl_tx_complete(struct htc_target *context, |
758 | struct list_head *packet_queue); | ||
758 | enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target, | 759 | enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target, |
759 | struct htc_packet *packet); | 760 | struct htc_packet *packet); |
760 | void ath6kl_stop_txrx(struct ath6kl *ar); | 761 | void ath6kl_stop_txrx(struct ath6kl *ar); |
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 5dfb7cc27aa..9173d46a802 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -432,7 +432,7 @@ static void htc_tx_complete(struct htc_endpoint *endpoint, | |||
432 | "htc tx complete ep %d pkts %d\n", | 432 | "htc tx complete ep %d pkts %d\n", |
433 | endpoint->eid, get_queue_depth(txq)); | 433 | endpoint->eid, get_queue_depth(txq)); |
434 | 434 | ||
435 | ath6kl_tx_complete(endpoint->target->dev->ar, txq); | 435 | ath6kl_tx_complete(endpoint->target, txq); |
436 | } | 436 | } |
437 | 437 | ||
438 | static void htc_tx_comp_handler(struct htc_target *target, | 438 | static void htc_tx_comp_handler(struct htc_target *target, |
diff --git a/drivers/net/wireless/ath/ath6kl/htc.h b/drivers/net/wireless/ath/ath6kl/htc.h index 5027ccc36b6..7b0c489164e 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.h +++ b/drivers/net/wireless/ath/ath6kl/htc.h | |||
@@ -319,6 +319,7 @@ enum htc_send_full_action { | |||
319 | }; | 319 | }; |
320 | 320 | ||
321 | struct htc_ep_callbacks { | 321 | struct htc_ep_callbacks { |
322 | void (*tx_complete) (struct htc_target *, struct htc_packet *); | ||
322 | void (*rx) (struct htc_target *, struct htc_packet *); | 323 | void (*rx) (struct htc_target *, struct htc_packet *); |
323 | void (*rx_refill) (struct htc_target *, enum htc_endpoint_id endpoint); | 324 | void (*rx_refill) (struct htc_target *, enum htc_endpoint_id endpoint); |
324 | enum htc_send_full_action (*tx_full) (struct htc_target *, | 325 | enum htc_send_full_action (*tx_full) (struct htc_target *, |
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c index f85353fd179..befe305847d 100644 --- a/drivers/net/wireless/ath/ath6kl/txrx.c +++ b/drivers/net/wireless/ath/ath6kl/txrx.c | |||
@@ -666,9 +666,10 @@ static void ath6kl_tx_clear_node_map(struct ath6kl_vif *vif, | |||
666 | } | 666 | } |
667 | } | 667 | } |
668 | 668 | ||
669 | void ath6kl_tx_complete(void *context, struct list_head *packet_queue) | 669 | void ath6kl_tx_complete(struct htc_target *target, |
670 | struct list_head *packet_queue) | ||
670 | { | 671 | { |
671 | struct ath6kl *ar = context; | 672 | struct ath6kl *ar = target->dev->ar; |
672 | struct sk_buff_head skb_queue; | 673 | struct sk_buff_head skb_queue; |
673 | struct htc_packet *packet; | 674 | struct htc_packet *packet; |
674 | struct sk_buff *skb; | 675 | struct sk_buff *skb; |