aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/txrx.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-08-10 02:49:12 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-08-10 03:07:53 -0400
commitad226ec22b92d7f0f834015149b1d1118e017f16 (patch)
tree6df97162eafe6f571220918e828bcfd43fc73a30 /drivers/net/wireless/ath/ath6kl/txrx.c
parent197035737e96a517eed26e8f4bb941738249783e (diff)
ath6kl: fix function name conflicts with ath9k
Stephen reported that compilation fails if both ath6kl and ath9k are compiled in: drivers/net/wireless/ath/ath6kl/built-in.o: In function `htc_start': (.opd+0x600): multiple definition of `htc_start' drivers/net/wireless/ath/ath9k/built-in.o:(.opd+0x3e40): first defined here drivers/net/wireless/ath/ath6kl/built-in.o: In function `.htc_stop': (.text+0x7b40): multiple definition of `.htc_stop' drivers/net/wireless/ath/ath9k/built-in.o:(.text+0x67b34): first defined he= re drivers/net/wireless/ath/ath6kl/built-in.o: In function `.htc_start': (.text+0x7d18): multiple definition of `.htc_start' drivers/net/wireless/ath/ath9k/built-in.o:(.text+0x67ba0): first defined he= re drivers/net/wireless/ath/ath6kl/built-in.o: In function `htc_stop': (.opd+0x5e8): multiple definition of `htc_stop' drivers/net/wireless/ath/ath9k/built-in.o:(.opd+0x3e28): first defined here To fix this add ath6kl prefix to all public functions in htc.c. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/txrx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index 0cab1c1b6fd1..167bdb9cf68d 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -221,7 +221,7 @@ int ath6kl_control_tx(void *devt, struct sk_buff *skb,
221 * This interface is asynchronous, if there is an error, cleanup 221 * This interface is asynchronous, if there is an error, cleanup
222 * will happen in the TX completion callback. 222 * will happen in the TX completion callback.
223 */ 223 */
224 htc_tx(ar->htc_target, &cookie->htc_pkt); 224 ath6kl_htc_tx(ar->htc_target, &cookie->htc_pkt);
225 225
226 return 0; 226 return 0;
227 227
@@ -331,7 +331,7 @@ int ath6kl_data_tx(struct sk_buff *skb, struct net_device *dev)
331 * HTC interface is asynchronous, if this fails, cleanup will 331 * HTC interface is asynchronous, if this fails, cleanup will
332 * happen in the ath6kl_tx_complete callback. 332 * happen in the ath6kl_tx_complete callback.
333 */ 333 */
334 htc_tx(ar->htc_target, &cookie->htc_pkt); 334 ath6kl_htc_tx(ar->htc_target, &cookie->htc_pkt);
335 335
336 return 0; 336 return 0;
337 337
@@ -403,7 +403,7 @@ void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active)
403 403
404notify_htc: 404notify_htc:
405 /* notify HTC, this may cause credit distribution changes */ 405 /* notify HTC, this may cause credit distribution changes */
406 htc_indicate_activity_change(ar->htc_target, eid, active); 406 ath6kl_htc_indicate_activity_change(ar->htc_target, eid, active);
407} 407}
408 408
409enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target, 409enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target,
@@ -611,8 +611,8 @@ void ath6kl_tx_data_cleanup(struct ath6kl *ar)
611 611
612 /* flush all the data (non-control) streams */ 612 /* flush all the data (non-control) streams */
613 for (i = 0; i < WMM_NUM_AC; i++) 613 for (i = 0; i < WMM_NUM_AC; i++)
614 htc_flush_txep(ar->htc_target, ar->ac2ep_map[i], 614 ath6kl_htc_flush_txep(ar->htc_target, ar->ac2ep_map[i],
615 ATH6KL_DATA_PKT_TAG); 615 ATH6KL_DATA_PKT_TAG);
616} 616}
617 617
618/* Rx functions */ 618/* Rx functions */
@@ -672,7 +672,7 @@ void ath6kl_rx_refill(struct htc_target *target, enum htc_endpoint_id endpoint)
672 struct list_head queue; 672 struct list_head queue;
673 673
674 n_buf_refill = ATH6KL_MAX_RX_BUFFERS - 674 n_buf_refill = ATH6KL_MAX_RX_BUFFERS -
675 htc_get_rxbuf_num(ar->htc_target, endpoint); 675 ath6kl_htc_get_rxbuf_num(ar->htc_target, endpoint);
676 676
677 if (n_buf_refill <= 0) 677 if (n_buf_refill <= 0)
678 return; 678 return;
@@ -695,7 +695,7 @@ void ath6kl_rx_refill(struct htc_target *target, enum htc_endpoint_id endpoint)
695 } 695 }
696 696
697 if (!list_empty(&queue)) 697 if (!list_empty(&queue))
698 htc_add_rxbuf_multiple(ar->htc_target, &queue); 698 ath6kl_htc_add_rxbuf_multiple(ar->htc_target, &queue);
699} 699}
700 700
701void ath6kl_refill_amsdu_rxbufs(struct ath6kl *ar, int count) 701void ath6kl_refill_amsdu_rxbufs(struct ath6kl *ar, int count)