diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-07-16 10:59:09 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:19 -0400 |
commit | e041c7f9af5a3583ee2bd20af1b03ec56b6adcca (patch) | |
tree | 31b2ed552fc9787e38657292b48d95231a7c9675 /drivers/net/wireless/ath/ath6kl/htc.c | |
parent | 7c565b6f8c635fc22535c763e08184379b16920e (diff) |
ath6kl: Remove endpoint reference from hif_scatter_req
Endpoint id ffrom htc_packet can be used instead.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/htc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index e65de498a825..e77e7684ee9b 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -127,10 +127,10 @@ static void htc_tx_comp_handler(struct htc_target *target, | |||
127 | htc_tx_complete(endpoint, &container); | 127 | htc_tx_complete(endpoint, &container); |
128 | } | 128 | } |
129 | 129 | ||
130 | static void htc_async_tx_scat_complete(struct hif_scatter_req *scat_req) | 130 | static void htc_async_tx_scat_complete(struct htc_target *target, |
131 | struct hif_scatter_req *scat_req) | ||
131 | { | 132 | { |
132 | struct htc_endpoint *endpoint = scat_req->ep; | 133 | struct htc_endpoint *endpoint; |
133 | struct htc_target *target = endpoint->target; | ||
134 | struct htc_packet *packet; | 134 | struct htc_packet *packet; |
135 | struct list_head tx_compq; | 135 | struct list_head tx_compq; |
136 | int i; | 136 | int i; |
@@ -144,6 +144,9 @@ static void htc_async_tx_scat_complete(struct hif_scatter_req *scat_req) | |||
144 | if (scat_req->status) | 144 | if (scat_req->status) |
145 | ath6kl_err("send scatter req failed: %d\n", scat_req->status); | 145 | ath6kl_err("send scatter req failed: %d\n", scat_req->status); |
146 | 146 | ||
147 | packet = scat_req->scat_list[0].packet; | ||
148 | endpoint = &target->endpoint[packet->endpoint]; | ||
149 | |||
147 | /* walk through the scatter list and process */ | 150 | /* walk through the scatter list and process */ |
148 | for (i = 0; i < scat_req->scat_entries; i++) { | 151 | for (i = 0; i < scat_req->scat_entries; i++) { |
149 | packet = scat_req->scat_list[i].packet; | 152 | packet = scat_req->scat_list[i].packet; |
@@ -465,7 +468,6 @@ static void htc_issue_send_bundle(struct htc_endpoint *endpoint, | |||
465 | 468 | ||
466 | /* send path is always asynchronous */ | 469 | /* send path is always asynchronous */ |
467 | scat_req->complete = htc_async_tx_scat_complete; | 470 | scat_req->complete = htc_async_tx_scat_complete; |
468 | scat_req->ep = endpoint; | ||
469 | n_sent_bundle++; | 471 | n_sent_bundle++; |
470 | tot_pkts_bundle += scat_req->scat_entries; | 472 | tot_pkts_bundle += scat_req->scat_entries; |
471 | 473 | ||