aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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
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')
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc.c61
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc.h45
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc_hif.c4
-rw-r--r--drivers/net/wireless/ath/ath6kl/init.c16
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c4
-rw-r--r--drivers/net/wireless/ath/ath6kl/txrx.c14
6 files changed, 74 insertions, 70 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c
index 5580e22c19f4..a8dc5c3ea567 100644
--- a/drivers/net/wireless/ath/ath6kl/htc.c
+++ b/drivers/net/wireless/ath/ath6kl/htc.c
@@ -689,9 +689,9 @@ static int htc_setup_tx_complete(struct htc_target *target)
689 return status; 689 return status;
690} 690}
691 691
692void htc_set_credit_dist(struct htc_target *target, 692void ath6kl_htc_set_credit_dist(struct htc_target *target,
693 struct htc_credit_state_info *cred_dist_cntxt, 693 struct htc_credit_state_info *cred_dist_cntxt,
694 u16 srvc_pri_order[], int list_len) 694 u16 srvc_pri_order[], int list_len)
695{ 695{
696 struct htc_endpoint *endpoint; 696 struct htc_endpoint *endpoint;
697 int i, ep; 697 int i, ep;
@@ -717,7 +717,7 @@ void htc_set_credit_dist(struct htc_target *target,
717 } 717 }
718} 718}
719 719
720int htc_tx(struct htc_target *target, struct htc_packet *packet) 720int ath6kl_htc_tx(struct htc_target *target, struct htc_packet *packet)
721{ 721{
722 struct htc_endpoint *endpoint; 722 struct htc_endpoint *endpoint;
723 struct list_head queue; 723 struct list_head queue;
@@ -745,8 +745,8 @@ int htc_tx(struct htc_target *target, struct htc_packet *packet)
745} 745}
746 746
747/* flush endpoint TX queue */ 747/* flush endpoint TX queue */
748void htc_flush_txep(struct htc_target *target, 748void ath6kl_htc_flush_txep(struct htc_target *target,
749 enum htc_endpoint_id eid, u16 tag) 749 enum htc_endpoint_id eid, u16 tag)
750{ 750{
751 struct htc_packet *packet, *tmp_pkt; 751 struct htc_packet *packet, *tmp_pkt;
752 struct list_head discard_q, container; 752 struct list_head discard_q, container;
@@ -785,7 +785,7 @@ void htc_flush_txep(struct htc_target *target,
785 785
786} 786}
787 787
788static void htc_flush_txep_all(struct htc_target *target) 788static void ath6kl_htc_flush_txep_all(struct htc_target *target)
789{ 789{
790 struct htc_endpoint *endpoint; 790 struct htc_endpoint *endpoint;
791 int i; 791 int i;
@@ -797,12 +797,12 @@ static void htc_flush_txep_all(struct htc_target *target)
797 if (endpoint->svc_id == 0) 797 if (endpoint->svc_id == 0)
798 /* not in use.. */ 798 /* not in use.. */
799 continue; 799 continue;
800 htc_flush_txep(target, i, HTC_TX_PACKET_TAG_ALL); 800 ath6kl_htc_flush_txep(target, i, HTC_TX_PACKET_TAG_ALL);
801 } 801 }
802} 802}
803 803
804void htc_indicate_activity_change(struct htc_target *target, 804void ath6kl_htc_indicate_activity_change(struct htc_target *target,
805 enum htc_endpoint_id eid, bool active) 805 enum htc_endpoint_id eid, bool active)
806{ 806{
807 struct htc_endpoint *endpoint = &target->endpoint[eid]; 807 struct htc_endpoint *endpoint = &target->endpoint[eid];
808 bool dist = false; 808 bool dist = false;
@@ -869,7 +869,7 @@ static int htc_add_rxbuf(struct htc_target *target, struct htc_packet *packet)
869 869
870 INIT_LIST_HEAD(&queue); 870 INIT_LIST_HEAD(&queue);
871 list_add_tail(&packet->list, &queue); 871 list_add_tail(&packet->list, &queue);
872 return htc_add_rxbuf_multiple(target, &queue); 872 return ath6kl_htc_add_rxbuf_multiple(target, &queue);
873} 873}
874 874
875static void htc_reclaim_rxbuf(struct htc_target *target, 875static void htc_reclaim_rxbuf(struct htc_target *target,
@@ -1721,8 +1721,8 @@ static int htc_fetch_rxpkts(struct htc_target *target,
1721 return status; 1721 return status;
1722} 1722}
1723 1723
1724int htc_rxmsg_pending_handler(struct htc_target *target, u32 msg_look_ahead[], 1724int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
1725 int *num_pkts) 1725 u32 msg_look_ahead[], int *num_pkts)
1726{ 1726{
1727 struct htc_packet *packets, *tmp_pkt; 1727 struct htc_packet *packets, *tmp_pkt;
1728 struct htc_endpoint *endpoint; 1728 struct htc_endpoint *endpoint;
@@ -1904,8 +1904,8 @@ fail_ctrl_rx:
1904 return NULL; 1904 return NULL;
1905} 1905}
1906 1906
1907int htc_add_rxbuf_multiple(struct htc_target *target, 1907int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
1908 struct list_head *pkt_queue) 1908 struct list_head *pkt_queue)
1909{ 1909{
1910 struct htc_endpoint *endpoint; 1910 struct htc_endpoint *endpoint;
1911 struct htc_packet *first_pkt; 1911 struct htc_packet *first_pkt;
@@ -1966,7 +1966,7 @@ int htc_add_rxbuf_multiple(struct htc_target *target,
1966 return status; 1966 return status;
1967} 1967}
1968 1968
1969void htc_flush_rx_buf(struct htc_target *target) 1969void ath6kl_htc_flush_rx_buf(struct htc_target *target)
1970{ 1970{
1971 struct htc_endpoint *endpoint; 1971 struct htc_endpoint *endpoint;
1972 struct htc_packet *packet, *tmp_pkt; 1972 struct htc_packet *packet, *tmp_pkt;
@@ -1994,9 +1994,9 @@ void htc_flush_rx_buf(struct htc_target *target)
1994 } 1994 }
1995} 1995}
1996 1996
1997int htc_conn_service(struct htc_target *target, 1997int ath6kl_htc_conn_service(struct htc_target *target,
1998 struct htc_service_connect_req *conn_req, 1998 struct htc_service_connect_req *conn_req,
1999 struct htc_service_connect_resp *conn_resp) 1999 struct htc_service_connect_resp *conn_resp)
2000{ 2000{
2001 struct htc_packet *rx_pkt = NULL; 2001 struct htc_packet *rx_pkt = NULL;
2002 struct htc_packet *tx_pkt = NULL; 2002 struct htc_packet *tx_pkt = NULL;
@@ -2154,7 +2154,8 @@ static void reset_ep_state(struct htc_target *target)
2154 INIT_LIST_HEAD(&target->cred_dist_list); 2154 INIT_LIST_HEAD(&target->cred_dist_list);
2155} 2155}
2156 2156
2157int htc_get_rxbuf_num(struct htc_target *target, enum htc_endpoint_id endpoint) 2157int ath6kl_htc_get_rxbuf_num(struct htc_target *target,
2158 enum htc_endpoint_id endpoint)
2158{ 2159{
2159 int num; 2160 int num;
2160 2161
@@ -2212,7 +2213,7 @@ static void htc_setup_msg_bndl(struct htc_target *target)
2212 } 2213 }
2213} 2214}
2214 2215
2215int htc_wait_target(struct htc_target *target) 2216int ath6kl_htc_wait_target(struct htc_target *target)
2216{ 2217{
2217 struct htc_packet *packet = NULL; 2218 struct htc_packet *packet = NULL;
2218 struct htc_ready_ext_msg *rdy_msg; 2219 struct htc_ready_ext_msg *rdy_msg;
@@ -2275,7 +2276,7 @@ int htc_wait_target(struct htc_target *target)
2275 connect.svc_id = HTC_CTRL_RSVD_SVC; 2276 connect.svc_id = HTC_CTRL_RSVD_SVC;
2276 2277
2277 /* connect fake service */ 2278 /* connect fake service */
2278 status = htc_conn_service((void *)target, &connect, &resp); 2279 status = ath6kl_htc_conn_service((void *)target, &connect, &resp);
2279 2280
2280 if (status) 2281 if (status)
2281 ath6kl_hif_cleanup_scatter(target->dev->ar); 2282 ath6kl_hif_cleanup_scatter(target->dev->ar);
@@ -2293,7 +2294,7 @@ fail_wait_target:
2293 * Start HTC, enable interrupts and let the target know 2294 * Start HTC, enable interrupts and let the target know
2294 * host has finished setup. 2295 * host has finished setup.
2295 */ 2296 */
2296int htc_start(struct htc_target *target) 2297int ath6kl_htc_start(struct htc_target *target)
2297{ 2298{
2298 struct htc_packet *packet; 2299 struct htc_packet *packet;
2299 int status; 2300 int status;
@@ -2327,13 +2328,13 @@ int htc_start(struct htc_target *target)
2327 status = ath6kldev_unmask_intrs(target->dev); 2328 status = ath6kldev_unmask_intrs(target->dev);
2328 2329
2329 if (status) 2330 if (status)
2330 htc_stop(target); 2331 ath6kl_htc_stop(target);
2331 2332
2332 return status; 2333 return status;
2333} 2334}
2334 2335
2335/* htc_stop: stop interrupt reception, and flush all queued buffers */ 2336/* htc_stop: stop interrupt reception, and flush all queued buffers */
2336void htc_stop(struct htc_target *target) 2337void ath6kl_htc_stop(struct htc_target *target)
2337{ 2338{
2338 spin_lock_bh(&target->htc_lock); 2339 spin_lock_bh(&target->htc_lock);
2339 target->htc_flags |= HTC_OP_STATE_STOPPING; 2340 target->htc_flags |= HTC_OP_STATE_STOPPING;
@@ -2346,14 +2347,14 @@ void htc_stop(struct htc_target *target)
2346 */ 2347 */
2347 ath6kldev_mask_intrs(target->dev); 2348 ath6kldev_mask_intrs(target->dev);
2348 2349
2349 htc_flush_txep_all(target); 2350 ath6kl_htc_flush_txep_all(target);
2350 2351
2351 htc_flush_rx_buf(target); 2352 ath6kl_htc_flush_rx_buf(target);
2352 2353
2353 reset_ep_state(target); 2354 reset_ep_state(target);
2354} 2355}
2355 2356
2356void *htc_create(struct ath6kl *ar) 2357void *ath6kl_htc_create(struct ath6kl *ar)
2357{ 2358{
2358 struct htc_target *target = NULL; 2359 struct htc_target *target = NULL;
2359 struct htc_packet *packet; 2360 struct htc_packet *packet;
@@ -2422,7 +2423,7 @@ void *htc_create(struct ath6kl *ar)
2422fail_create_htc: 2423fail_create_htc:
2423 if (i != NUM_CONTROL_BUFFERS || status) { 2424 if (i != NUM_CONTROL_BUFFERS || status) {
2424 if (target) { 2425 if (target) {
2425 htc_cleanup(target); 2426 ath6kl_htc_cleanup(target);
2426 target = NULL; 2427 target = NULL;
2427 } 2428 }
2428 } 2429 }
@@ -2431,7 +2432,7 @@ fail_create_htc:
2431} 2432}
2432 2433
2433/* cleanup the HTC instance */ 2434/* cleanup the HTC instance */
2434void htc_cleanup(struct htc_target *target) 2435void ath6kl_htc_cleanup(struct htc_target *target)
2435{ 2436{
2436 struct htc_packet *packet, *tmp_packet; 2437 struct htc_packet *packet, *tmp_packet;
2437 2438
diff --git a/drivers/net/wireless/ath/ath6kl/htc.h b/drivers/net/wireless/ath/ath6kl/htc.h
index d844d36e40cf..8ce0c2c07ded 100644
--- a/drivers/net/wireless/ath/ath6kl/htc.h
+++ b/drivers/net/wireless/ath/ath6kl/htc.h
@@ -540,27 +540,30 @@ struct htc_target {
540 int chk_irq_status_cnt; 540 int chk_irq_status_cnt;
541}; 541};
542 542
543void *htc_create(struct ath6kl *ar); 543void *ath6kl_htc_create(struct ath6kl *ar);
544void htc_set_credit_dist(struct htc_target *target, 544void ath6kl_htc_set_credit_dist(struct htc_target *target,
545 struct htc_credit_state_info *cred_info, 545 struct htc_credit_state_info *cred_info,
546 u16 svc_pri_order[], int len); 546 u16 svc_pri_order[], int len);
547int htc_wait_target(struct htc_target *target); 547int ath6kl_htc_wait_target(struct htc_target *target);
548int htc_start(struct htc_target *target); 548int ath6kl_htc_start(struct htc_target *target);
549int htc_conn_service(struct htc_target *target, 549int ath6kl_htc_conn_service(struct htc_target *target,
550 struct htc_service_connect_req *req, 550 struct htc_service_connect_req *req,
551 struct htc_service_connect_resp *resp); 551 struct htc_service_connect_resp *resp);
552int htc_tx(struct htc_target *target, struct htc_packet *packet); 552int ath6kl_htc_tx(struct htc_target *target, struct htc_packet *packet);
553void htc_stop(struct htc_target *target); 553void ath6kl_htc_stop(struct htc_target *target);
554void htc_cleanup(struct htc_target *target); 554void ath6kl_htc_cleanup(struct htc_target *target);
555void htc_flush_txep(struct htc_target *target, 555void ath6kl_htc_flush_txep(struct htc_target *target,
556 enum htc_endpoint_id endpoint, u16 tag); 556 enum htc_endpoint_id endpoint, u16 tag);
557void htc_flush_rx_buf(struct htc_target *target); 557void ath6kl_htc_flush_rx_buf(struct htc_target *target);
558void htc_indicate_activity_change(struct htc_target *target, 558void ath6kl_htc_indicate_activity_change(struct htc_target *target,
559 enum htc_endpoint_id endpoint, bool active); 559 enum htc_endpoint_id endpoint,
560int htc_get_rxbuf_num(struct htc_target *target, enum htc_endpoint_id endpoint); 560 bool active);
561int htc_add_rxbuf_multiple(struct htc_target *target, struct list_head *pktq); 561int ath6kl_htc_get_rxbuf_num(struct htc_target *target,
562int htc_rxmsg_pending_handler(struct htc_target *target, u32 msg_look_ahead[], 562 enum htc_endpoint_id endpoint);
563 int *n_pkts); 563int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
564 struct list_head *pktq);
565int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
566 u32 msg_look_ahead[], int *n_pkts);
564 567
565static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, 568static inline void set_htc_pkt_info(struct htc_packet *packet, void *context,
566 u8 *buf, unsigned int len, 569 u8 *buf, unsigned int len,
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.c b/drivers/net/wireless/ath/ath6kl/htc_hif.c
index 5d397b5c5efb..86b1cc7409c2 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_hif.c
+++ b/drivers/net/wireless/ath/ath6kl/htc_hif.c
@@ -416,8 +416,8 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
416 * improve performance by reducing context switching when 416 * improve performance by reducing context switching when
417 * we rapidly pull packets. 417 * we rapidly pull packets.
418 */ 418 */
419 status = htc_rxmsg_pending_handler(dev->htc_cnxt, 419 status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt,
420 &lk_ahd, &fetched); 420 &lk_ahd, &fetched);
421 if (status) 421 if (status)
422 goto out; 422 goto out;
423 423
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c
index 99ff2f94b6ce..9d10322eac41 100644
--- a/drivers/net/wireless/ath/ath6kl/init.c
+++ b/drivers/net/wireless/ath/ath6kl/init.c
@@ -160,7 +160,7 @@ static int ath6kl_connectservice(struct ath6kl *ar,
160 160
161 memset(&response, 0, sizeof(response)); 161 memset(&response, 0, sizeof(response));
162 162
163 status = htc_conn_service(ar->htc_target, con_req, &response); 163 status = ath6kl_htc_conn_service(ar->htc_target, con_req, &response);
164 if (status) { 164 if (status) {
165 ath6kl_err("failed to connect to %s service status:%d\n", 165 ath6kl_err("failed to connect to %s service status:%d\n",
166 desc, status); 166 desc, status);
@@ -1069,7 +1069,7 @@ static int ath6kl_init(struct net_device *dev)
1069 * driver layer has to init BMI in order to set the host block 1069 * driver layer has to init BMI in order to set the host block
1070 * size. 1070 * size.
1071 */ 1071 */
1072 if (htc_wait_target(ar->htc_target)) { 1072 if (ath6kl_htc_wait_target(ar->htc_target)) {
1073 status = -EIO; 1073 status = -EIO;
1074 goto err_node_cleanup; 1074 goto err_node_cleanup;
1075 } 1075 }
@@ -1098,7 +1098,7 @@ static int ath6kl_init(struct net_device *dev)
1098 ath6kl_cookie_init(ar); 1098 ath6kl_cookie_init(ar);
1099 1099
1100 /* start HTC */ 1100 /* start HTC */
1101 status = htc_start(ar->htc_target); 1101 status = ath6kl_htc_start(ar->htc_target);
1102 1102
1103 if (status) { 1103 if (status) {
1104 ath6kl_cookie_cleanup(ar); 1104 ath6kl_cookie_cleanup(ar);
@@ -1138,9 +1138,9 @@ static int ath6kl_init(struct net_device *dev)
1138 goto ath6kl_init_done; 1138 goto ath6kl_init_done;
1139 1139
1140err_htc_stop: 1140err_htc_stop:
1141 htc_stop(ar->htc_target); 1141 ath6kl_htc_stop(ar->htc_target);
1142err_rxbuf_cleanup: 1142err_rxbuf_cleanup:
1143 htc_flush_rx_buf(ar->htc_target); 1143 ath6kl_htc_flush_rx_buf(ar->htc_target);
1144 ath6kl_cleanup_amsdu_rxbufs(ar); 1144 ath6kl_cleanup_amsdu_rxbufs(ar);
1145err_cleanup_scatter: 1145err_cleanup_scatter:
1146 ath6kl_hif_cleanup_scatter(ar); 1146 ath6kl_hif_cleanup_scatter(ar);
@@ -1179,7 +1179,7 @@ int ath6kl_core_init(struct ath6kl *ar)
1179 if (ret) 1179 if (ret)
1180 goto err_bmi_cleanup; 1180 goto err_bmi_cleanup;
1181 1181
1182 ar->htc_target = htc_create(ar); 1182 ar->htc_target = ath6kl_htc_create(ar);
1183 1183
1184 if (!ar->htc_target) { 1184 if (!ar->htc_target) {
1185 ret = -ENOMEM; 1185 ret = -ENOMEM;
@@ -1217,7 +1217,7 @@ int ath6kl_core_init(struct ath6kl *ar)
1217 return ret; 1217 return ret;
1218 1218
1219err_htc_cleanup: 1219err_htc_cleanup:
1220 htc_cleanup(ar->htc_target); 1220 ath6kl_htc_cleanup(ar->htc_target);
1221err_bmi_cleanup: 1221err_bmi_cleanup:
1222 ath6kl_bmi_cleanup(ar); 1222 ath6kl_bmi_cleanup(ar);
1223err_wq: 1223err_wq:
@@ -1275,7 +1275,7 @@ void ath6kl_destroy(struct net_device *dev, unsigned int unregister)
1275 destroy_workqueue(ar->ath6kl_wq); 1275 destroy_workqueue(ar->ath6kl_wq);
1276 1276
1277 if (ar->htc_target) 1277 if (ar->htc_target)
1278 htc_cleanup(ar->htc_target); 1278 ath6kl_htc_cleanup(ar->htc_target);
1279 1279
1280 aggr_module_destroy(ar->aggr_cntxt); 1280 aggr_module_destroy(ar->aggr_cntxt);
1281 1281
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index 284e3e96ff3e..c336eae0cf48 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -375,7 +375,7 @@ void ath6kl_stop_endpoint(struct net_device *dev, bool keep_profile,
375 375
376 if (ar->htc_target) { 376 if (ar->htc_target) {
377 ath6kl_dbg(ATH6KL_DBG_TRC, "%s: shut down htc\n", __func__); 377 ath6kl_dbg(ATH6KL_DBG_TRC, "%s: shut down htc\n", __func__);
378 htc_stop(ar->htc_target); 378 ath6kl_htc_stop(ar->htc_target);
379 } 379 }
380 380
381 /* 381 /*
@@ -568,7 +568,7 @@ int ath6k_setup_credit_dist(void *htc_handle,
568 servicepriority[4] = WMI_DATA_BK_SVC; /* lowest */ 568 servicepriority[4] = WMI_DATA_BK_SVC; /* lowest */
569 569
570 /* set priority list */ 570 /* set priority list */
571 htc_set_credit_dist(htc_handle, cred_info, servicepriority, 5); 571 ath6kl_htc_set_credit_dist(htc_handle, cred_info, servicepriority, 5);
572 572
573 return 0; 573 return 0;
574} 574}
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)