ath9k_htc: Pass correct private pointer
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 23 Apr 2010 04:58:15 +0000 (10:28 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Apr 2010 18:21:18 +0000 (14:21 -0400)
In the TX callback, the HTC layer has to pass the
priv pointer that was registered during service initialization.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_hst.c

index f2dca258bdc2b520b8aedd66e87a15f0baf556f5..7bf6ce1e7e2e6d9e7593d31c9982e92aeb6ebef4 100644 (file)
@@ -341,8 +341,9 @@ void ath9k_htc_txcompletion_cb(struct htc_target *htc_handle,
                skb_pull(skb, sizeof(struct htc_frame_hdr));
 
                if (endpoint->ep_callbacks.tx) {
-                       endpoint->ep_callbacks.tx(htc_handle->drv_priv, skb,
-                                                 htc_hdr->endpoint_id, txok);
+                       endpoint->ep_callbacks.tx(endpoint->ep_callbacks.priv,
+                                                 skb, htc_hdr->endpoint_id,
+                                                 txok);
                }
        }