Bladeren bron

ath10k: export htt tx rx handlers

Some special copy engines delivers messages directly to HTT by
bypassing HTC layer. Hence exporting tx_completion and rx_handler
for delivering the data to HTT layer.

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>
Rajkumar Manoharan 9 jaren geleden
bovenliggende
commit
3f0f7ed420

+ 1 - 0
drivers/net/wireless/ath/ath10k/htt.h

@@ -1591,6 +1591,7 @@ int ath10k_htt_send_rx_ring_cfg_ll(struct ath10k_htt *htt);
 int ath10k_htt_h2t_aggr_cfg_msg(struct ath10k_htt *htt,
 int ath10k_htt_h2t_aggr_cfg_msg(struct ath10k_htt *htt,
 				u8 max_subfrms_ampdu,
 				u8 max_subfrms_ampdu,
 				u8 max_subfrms_amsdu);
 				u8 max_subfrms_amsdu);
+void ath10k_htt_hif_tx_complete(struct ath10k *ar, struct sk_buff *skb);
 
 
 void __ath10k_htt_tx_dec_pending(struct ath10k_htt *htt, bool limit_mgmt_desc);
 void __ath10k_htt_tx_dec_pending(struct ath10k_htt *htt, bool limit_mgmt_desc);
 int ath10k_htt_tx_alloc_msdu_id(struct ath10k_htt *htt, struct sk_buff *skb);
 int ath10k_htt_tx_alloc_msdu_id(struct ath10k_htt *htt, struct sk_buff *skb);

+ 1 - 0
drivers/net/wireless/ath/ath10k/htt_rx.c

@@ -2125,6 +2125,7 @@ void ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)
 	/* Free the indication buffer */
 	/* Free the indication buffer */
 	dev_kfree_skb_any(skb);
 	dev_kfree_skb_any(skb);
 }
 }
+EXPORT_SYMBOL(ath10k_htt_t2h_msg_handler);
 
 
 static void ath10k_htt_txrx_compl_task(unsigned long ptr)
 static void ath10k_htt_txrx_compl_task(unsigned long ptr)
 {
 {

+ 6 - 0
drivers/net/wireless/ath/ath10k/htt_tx.c

@@ -187,6 +187,12 @@ void ath10k_htt_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb)
 	dev_kfree_skb_any(skb);
 	dev_kfree_skb_any(skb);
 }
 }
 
 
+void ath10k_htt_hif_tx_complete(struct ath10k *ar, struct sk_buff *skb)
+{
+	dev_kfree_skb_any(skb);
+}
+EXPORT_SYMBOL(ath10k_htt_hif_tx_complete);
+
 int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt)
 int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt)
 {
 {
 	struct ath10k *ar = htt->ar;
 	struct ath10k *ar = htt->ar;