diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-07-18 04:53:27 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:20 -0400 |
commit | 3b2f5e5145339e188f74f57bc6eb5a1f672ecf33 (patch) | |
tree | 4451840ca8eb3c80eb630bd5dd40937f7faa9d9d /drivers/net/wireless/ath/ath6kl/htc.c | |
parent | df45f7f92735210ea19a8a358a304ccfd01c1428 (diff) |
ath6kl: Move bundle size from ath6kl_device to htc_target
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/htc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 052dc1989c13..1964059c1492 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -356,7 +356,7 @@ static int htc_setup_send_scat_list(struct htc_target *target, | |||
356 | int i, len, rem_scat, cred_pad; | 356 | int i, len, rem_scat, cred_pad; |
357 | int status = 0; | 357 | int status = 0; |
358 | 358 | ||
359 | rem_scat = target->dev->max_tx_bndl_sz; | 359 | rem_scat = target->max_tx_bndl_sz; |
360 | 360 | ||
361 | for (i = 0; i < n_scat; i++) { | 361 | for (i = 0; i < n_scat; i++) { |
362 | scat_req->scat_list[i].packet = NULL; | 362 | scat_req->scat_list[i].packet = NULL; |
@@ -1532,7 +1532,7 @@ static int htc_issue_rxpkt_bundle(struct htc_target *target, | |||
1532 | { | 1532 | { |
1533 | struct hif_scatter_req *scat_req; | 1533 | struct hif_scatter_req *scat_req; |
1534 | struct htc_packet *packet; | 1534 | struct htc_packet *packet; |
1535 | int rem_space = target->dev->max_rx_bndl_sz; | 1535 | int rem_space = target->max_rx_bndl_sz; |
1536 | int n_scat_pkt, status = 0, i, len; | 1536 | int n_scat_pkt, status = 0, i, len; |
1537 | 1537 | ||
1538 | n_scat_pkt = get_queue_depth(rxq); | 1538 | n_scat_pkt = get_queue_depth(rxq); |
@@ -2188,18 +2188,18 @@ static void htc_setup_msg_bndl(struct htc_target *target) | |||
2188 | target->msg_per_bndl_max); | 2188 | target->msg_per_bndl_max); |
2189 | 2189 | ||
2190 | /* Max rx bundle size is limited by the max tx bundle size */ | 2190 | /* Max rx bundle size is limited by the max tx bundle size */ |
2191 | target->dev->max_rx_bndl_sz = scat_info->max_xfer_szper_scatreq; | 2191 | target->max_rx_bndl_sz = scat_info->max_xfer_szper_scatreq; |
2192 | /* Max tx bundle size if limited by the extended mbox address range */ | 2192 | /* Max tx bundle size if limited by the extended mbox address range */ |
2193 | target->dev->max_tx_bndl_sz = min(HIF_MBOX0_EXT_WIDTH, | 2193 | target->max_tx_bndl_sz = min(HIF_MBOX0_EXT_WIDTH, |
2194 | scat_info->max_xfer_szper_scatreq); | 2194 | scat_info->max_xfer_szper_scatreq); |
2195 | 2195 | ||
2196 | ath6kl_dbg(ATH6KL_DBG_ANY, "max recv: %d max send: %d\n", | 2196 | ath6kl_dbg(ATH6KL_DBG_ANY, "max recv: %d max send: %d\n", |
2197 | target->dev->max_rx_bndl_sz, target->dev->max_tx_bndl_sz); | 2197 | target->max_rx_bndl_sz, target->max_tx_bndl_sz); |
2198 | 2198 | ||
2199 | if (target->dev->max_tx_bndl_sz) | 2199 | if (target->max_tx_bndl_sz) |
2200 | target->tx_bndl_enable = true; | 2200 | target->tx_bndl_enable = true; |
2201 | 2201 | ||
2202 | if (target->dev->max_rx_bndl_sz) | 2202 | if (target->max_rx_bndl_sz) |
2203 | target->rx_bndl_enable = true; | 2203 | target->rx_bndl_enable = true; |
2204 | 2204 | ||
2205 | if ((target->tgt_cred_sz % target->dev->block_sz) != 0) { | 2205 | if ((target->tgt_cred_sz % target->dev->block_sz) != 0) { |