Skip to content

Commit

Permalink
ath10k: export htc tx rx handlers
Browse files Browse the repository at this point in the history
Export HTC layer tx and rx handlers. This will be used by HIF layer
for per-CE data processing. Instead of callback mechanism, HIF will
call appropriate upper layers API directly.

Reviewed-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Rajkumar Manoharan authored and Kalle Valo committed Oct 16, 2015
1 parent 0e33944 commit aed1dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/wireless/ath/ath10k/htc.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ int ath10k_htc_send(struct ath10k_htc *htc,
return ret;
}

static int ath10k_htc_tx_completion_handler(struct ath10k *ar,
struct sk_buff *skb)
int ath10k_htc_tx_completion_handler(struct ath10k *ar, struct sk_buff *skb)
{
struct ath10k_htc *htc = &ar->htc;
struct ath10k_skb_cb *skb_cb;
Expand All @@ -199,6 +198,7 @@ static int ath10k_htc_tx_completion_handler(struct ath10k *ar,

return 0;
}
EXPORT_SYMBOL(ath10k_htc_tx_completion_handler);

/***********/
/* Receive */
Expand Down Expand Up @@ -304,8 +304,7 @@ static int ath10k_htc_process_trailer(struct ath10k_htc *htc,
return status;
}

static int ath10k_htc_rx_completion_handler(struct ath10k *ar,
struct sk_buff *skb)
int ath10k_htc_rx_completion_handler(struct ath10k *ar, struct sk_buff *skb)
{
int status = 0;
struct ath10k_htc *htc = &ar->htc;
Expand Down Expand Up @@ -442,6 +441,7 @@ static int ath10k_htc_rx_completion_handler(struct ath10k *ar,

return status;
}
EXPORT_SYMBOL(ath10k_htc_rx_completion_handler);

static void ath10k_htc_control_rx_complete(struct ath10k *ar,
struct sk_buff *skb)
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath10k/htc.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,7 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc,
int ath10k_htc_send(struct ath10k_htc *htc, enum ath10k_htc_ep_id eid,
struct sk_buff *packet);
struct sk_buff *ath10k_htc_alloc_skb(struct ath10k *ar, int size);
int ath10k_htc_tx_completion_handler(struct ath10k *ar, struct sk_buff *skb);
int ath10k_htc_rx_completion_handler(struct ath10k *ar, struct sk_buff *skb);

#endif

0 comments on commit aed1dc8

Please sign in to comment.