aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>2015-10-12 08:57:00 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2015-10-16 08:49:29 -0400
commitaed1dc8231a035af3e7ef3f7ce1bd4ed2a13db31 (patch)
treee0037c49e471c6f2f1eb6d9efe7ceae928ac45fe /drivers/net/wireless/ath
parent0e339447cf2c8b5c742f9be8e2d73bc27b7ac9c4 (diff)
ath10k: export htc tx rx handlers
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath10k/htc.c8
-rw-r--r--drivers/net/wireless/ath/ath10k/htc.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c
index 32d9ff1b19dc..97c24b2d65a9 100644
--- a/drivers/net/wireless/ath/ath10k/htc.c
+++ b/drivers/net/wireless/ath/ath10k/htc.c
@@ -181,8 +181,7 @@ err_pull:
181 return ret; 181 return ret;
182} 182}
183 183
184static int ath10k_htc_tx_completion_handler(struct ath10k *ar, 184int ath10k_htc_tx_completion_handler(struct ath10k *ar, struct sk_buff *skb)
185 struct sk_buff *skb)
186{ 185{
187 struct ath10k_htc *htc = &ar->htc; 186 struct ath10k_htc *htc = &ar->htc;
188 struct ath10k_skb_cb *skb_cb; 187 struct ath10k_skb_cb *skb_cb;
@@ -199,6 +198,7 @@ static int ath10k_htc_tx_completion_handler(struct ath10k *ar,
199 198
200 return 0; 199 return 0;
201} 200}
201EXPORT_SYMBOL(ath10k_htc_tx_completion_handler);
202 202
203/***********/ 203/***********/
204/* Receive */ 204/* Receive */
@@ -304,8 +304,7 @@ static int ath10k_htc_process_trailer(struct ath10k_htc *htc,
304 return status; 304 return status;
305} 305}
306 306
307static int ath10k_htc_rx_completion_handler(struct ath10k *ar, 307int ath10k_htc_rx_completion_handler(struct ath10k *ar, struct sk_buff *skb)
308 struct sk_buff *skb)
309{ 308{
310 int status = 0; 309 int status = 0;
311 struct ath10k_htc *htc = &ar->htc; 310 struct ath10k_htc *htc = &ar->htc;
@@ -442,6 +441,7 @@ out:
442 441
443 return status; 442 return status;
444} 443}
444EXPORT_SYMBOL(ath10k_htc_rx_completion_handler);
445 445
446static void ath10k_htc_control_rx_complete(struct ath10k *ar, 446static void ath10k_htc_control_rx_complete(struct ath10k *ar,
447 struct sk_buff *skb) 447 struct sk_buff *skb)
diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h
index 527179c0edce..d1fc8e75efb7 100644
--- a/drivers/net/wireless/ath/ath10k/htc.h
+++ b/drivers/net/wireless/ath/ath10k/htc.h
@@ -355,5 +355,7 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc,
355int ath10k_htc_send(struct ath10k_htc *htc, enum ath10k_htc_ep_id eid, 355int ath10k_htc_send(struct ath10k_htc *htc, enum ath10k_htc_ep_id eid,
356 struct sk_buff *packet); 356 struct sk_buff *packet);
357struct sk_buff *ath10k_htc_alloc_skb(struct ath10k *ar, int size); 357struct sk_buff *ath10k_htc_alloc_skb(struct ath10k *ar, int size);
358int ath10k_htc_tx_completion_handler(struct ath10k *ar, struct sk_buff *skb);
359int ath10k_htc_rx_completion_handler(struct ath10k *ar, struct sk_buff *skb);
358 360
359#endif 361#endif