/* total length of entire transfer */
        u32 len;
 
-       void (*complete) (struct hif_scatter_req *);
+       void (*complete) (struct htc_target *, struct hif_scatter_req *);
        int status;
-       struct htc_endpoint *ep;
        int scat_entries;
 
        struct bus_request *busrequest;
 
        htc_tx_complete(endpoint, &container);
 }
 
-static void htc_async_tx_scat_complete(struct hif_scatter_req *scat_req)
+static void htc_async_tx_scat_complete(struct htc_target *target,
+                                      struct hif_scatter_req *scat_req)
 {
-       struct htc_endpoint *endpoint = scat_req->ep;
-       struct htc_target *target = endpoint->target;
+       struct htc_endpoint *endpoint;
        struct htc_packet *packet;
        struct list_head tx_compq;
        int i;
        if (scat_req->status)
                ath6kl_err("send scatter req failed: %d\n", scat_req->status);
 
+       packet = scat_req->scat_list[0].packet;
+       endpoint = &target->endpoint[packet->endpoint];
+
        /* walk through the scatter list and process */
        for (i = 0; i < scat_req->scat_entries; i++) {
                packet = scat_req->scat_list[i].packet;
 
                /* send path is always asynchronous */
                scat_req->complete = htc_async_tx_scat_complete;
-               scat_req->ep = endpoint;
                n_sent_bundle++;
                tot_pkts_bundle += scat_req->scat_entries;
 
 
 
        ath6kl_add_io_pkt(dev, packet);
 
-       req->complete(req);
+       req->complete(target, req);
 }
 
 static int ath6kldev_rw_scatter(struct ath6kl *ar, struct hif_scatter_req *req)
                        if (packet != NULL)
                                ath6kl_add_io_pkt(dev, packet);
                        req->status = status;
-                       req->complete(req);
+                       req->complete(ar->htc_target, req);
                        status = 0;
                }
 
        if (status) {
                if (!read) {
                        scat_req->status = status;
-                       scat_req->complete(scat_req);
+                       scat_req->complete(dev->ar->htc_target, scat_req);
                        return 0;
                }
                return status;