aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl-4965-tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-4965-tx.c')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-4965-tx.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965-tx.c b/drivers/net/wireless/iwlegacy/iwl-4965-tx.c
index efc21be8a940..66dd172fed60 100644
--- a/drivers/net/wireless/iwlegacy/iwl-4965-tx.c
+++ b/drivers/net/wireless/iwlegacy/iwl-4965-tx.c
@@ -258,7 +258,7 @@ static void il4965_tx_cmd_build_hwcrypto(struct il_priv *il,
258 break; 258 break;
259 259
260 default: 260 default:
261 IL_ERR(il, "Unknown encode cipher %x\n", keyconf->cipher); 261 IL_ERR("Unknown encode cipher %x\n", keyconf->cipher);
262 break; 262 break;
263 } 263 }
264} 264}
@@ -619,13 +619,13 @@ int il4965_txq_ctx_alloc(struct il_priv *il)
619 ret = il4965_alloc_dma_ptr(il, &il->scd_bc_tbls, 619 ret = il4965_alloc_dma_ptr(il, &il->scd_bc_tbls,
620 il->hw_params.scd_bc_tbls_size); 620 il->hw_params.scd_bc_tbls_size);
621 if (ret) { 621 if (ret) {
622 IL_ERR(il, "Scheduler BC Table allocation failed\n"); 622 IL_ERR("Scheduler BC Table allocation failed\n");
623 goto error_bc_tbls; 623 goto error_bc_tbls;
624 } 624 }
625 /* Alloc keep-warm buffer */ 625 /* Alloc keep-warm buffer */
626 ret = il4965_alloc_dma_ptr(il, &il->kw, IL_KW_SIZE); 626 ret = il4965_alloc_dma_ptr(il, &il->kw, IL_KW_SIZE);
627 if (ret) { 627 if (ret) {
628 IL_ERR(il, "Keep Warm allocation failed\n"); 628 IL_ERR("Keep Warm allocation failed\n");
629 goto error_kw; 629 goto error_kw;
630 } 630 }
631 631
@@ -652,7 +652,7 @@ int il4965_txq_ctx_alloc(struct il_priv *il)
652 &il->txq[txq_id], slots_num, 652 &il->txq[txq_id], slots_num,
653 txq_id); 653 txq_id);
654 if (ret) { 654 if (ret) {
655 IL_ERR(il, "Tx %d queue init failed\n", txq_id); 655 IL_ERR("Tx %d queue init failed\n", txq_id);
656 goto error; 656 goto error;
657 } 657 }
658 } 658 }
@@ -712,7 +712,7 @@ void il4965_txq_ctx_stop(struct il_priv *il)
712 if (il_poll_direct_bit(il, FH_TSSR_TX_STATUS_REG, 712 if (il_poll_direct_bit(il, FH_TSSR_TX_STATUS_REG,
713 FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(ch), 713 FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(ch),
714 1000)) 714 1000))
715 IL_ERR(il, "Failing on timeout while stopping" 715 IL_ERR("Failing on timeout while stopping"
716 " DMA channel %d [0x%08x]", ch, 716 " DMA channel %d [0x%08x]", ch,
717 il_read_direct32(il, 717 il_read_direct32(il,
718 FH_TSSR_TX_STATUS_REG)); 718 FH_TSSR_TX_STATUS_REG));
@@ -803,7 +803,7 @@ static int il4965_txq_agg_enable(struct il_priv *il, int txq_id,
803 if ((IWL49_FIRST_AMPDU_QUEUE > txq_id) || 803 if ((IWL49_FIRST_AMPDU_QUEUE > txq_id) ||
804 (IWL49_FIRST_AMPDU_QUEUE + 804 (IWL49_FIRST_AMPDU_QUEUE +
805 il->cfg->base_params->num_of_ampdu_queues <= txq_id)) { 805 il->cfg->base_params->num_of_ampdu_queues <= txq_id)) {
806 IL_WARN(il, 806 IL_WARN(
807 "queue number out of range: %d, must be %d to %d\n", 807 "queue number out of range: %d, must be %d to %d\n",
808 txq_id, IWL49_FIRST_AMPDU_QUEUE, 808 txq_id, IWL49_FIRST_AMPDU_QUEUE,
809 IWL49_FIRST_AMPDU_QUEUE + 809 IWL49_FIRST_AMPDU_QUEUE +
@@ -871,25 +871,25 @@ int il4965_tx_agg_start(struct il_priv *il, struct ieee80211_vif *vif,
871 if (unlikely(tx_fifo < 0)) 871 if (unlikely(tx_fifo < 0))
872 return tx_fifo; 872 return tx_fifo;
873 873
874 IL_WARN(il, "%s on ra = %pM tid = %d\n", 874 IL_WARN("%s on ra = %pM tid = %d\n",
875 __func__, sta->addr, tid); 875 __func__, sta->addr, tid);
876 876
877 sta_id = il_sta_id(sta); 877 sta_id = il_sta_id(sta);
878 if (sta_id == IL_INVALID_STATION) { 878 if (sta_id == IL_INVALID_STATION) {
879 IL_ERR(il, "Start AGG on invalid station\n"); 879 IL_ERR("Start AGG on invalid station\n");
880 return -ENXIO; 880 return -ENXIO;
881 } 881 }
882 if (unlikely(tid >= MAX_TID_COUNT)) 882 if (unlikely(tid >= MAX_TID_COUNT))
883 return -EINVAL; 883 return -EINVAL;
884 884
885 if (il->stations[sta_id].tid[tid].agg.state != IL_AGG_OFF) { 885 if (il->stations[sta_id].tid[tid].agg.state != IL_AGG_OFF) {
886 IL_ERR(il, "Start AGG when state is not IL_AGG_OFF !\n"); 886 IL_ERR("Start AGG when state is not IL_AGG_OFF !\n");
887 return -ENXIO; 887 return -ENXIO;
888 } 888 }
889 889
890 txq_id = il4965_txq_ctx_activate_free(il); 890 txq_id = il4965_txq_ctx_activate_free(il);
891 if (txq_id == -1) { 891 if (txq_id == -1) {
892 IL_ERR(il, "No free aggregation queue available\n"); 892 IL_ERR("No free aggregation queue available\n");
893 return -ENXIO; 893 return -ENXIO;
894 } 894 }
895 895
@@ -932,7 +932,7 @@ static int il4965_txq_agg_disable(struct il_priv *il, u16 txq_id,
932 if ((IWL49_FIRST_AMPDU_QUEUE > txq_id) || 932 if ((IWL49_FIRST_AMPDU_QUEUE > txq_id) ||
933 (IWL49_FIRST_AMPDU_QUEUE + 933 (IWL49_FIRST_AMPDU_QUEUE +
934 il->cfg->base_params->num_of_ampdu_queues <= txq_id)) { 934 il->cfg->base_params->num_of_ampdu_queues <= txq_id)) {
935 IL_WARN(il, 935 IL_WARN(
936 "queue number out of range: %d, must be %d to %d\n", 936 "queue number out of range: %d, must be %d to %d\n",
937 txq_id, IWL49_FIRST_AMPDU_QUEUE, 937 txq_id, IWL49_FIRST_AMPDU_QUEUE,
938 IWL49_FIRST_AMPDU_QUEUE + 938 IWL49_FIRST_AMPDU_QUEUE +
@@ -973,7 +973,7 @@ int il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif,
973 sta_id = il_sta_id(sta); 973 sta_id = il_sta_id(sta);
974 974
975 if (sta_id == IL_INVALID_STATION) { 975 if (sta_id == IL_INVALID_STATION) {
976 IL_ERR(il, "Invalid station for AGG tid %d\n", tid); 976 IL_ERR("Invalid station for AGG tid %d\n", tid);
977 return -ENXIO; 977 return -ENXIO;
978 } 978 }
979 979
@@ -996,7 +996,7 @@ int il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif,
996 case IL_AGG_ON: 996 case IL_AGG_ON:
997 break; 997 break;
998 default: 998 default:
999 IL_WARN(il, "Stopping AGG while state not ON or starting\n"); 999 IL_WARN("Stopping AGG while state not ON or starting\n");
1000 } 1000 }
1001 1001
1002 write_ptr = il->txq[txq_id].q.write_ptr; 1002 write_ptr = il->txq[txq_id].q.write_ptr;
@@ -1115,7 +1115,7 @@ int il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int index)
1115 struct ieee80211_hdr *hdr; 1115 struct ieee80211_hdr *hdr;
1116 1116
1117 if ((index >= q->n_bd) || (il_queue_used(q, index) == 0)) { 1117 if ((index >= q->n_bd) || (il_queue_used(q, index) == 0)) {
1118 IL_ERR(il, "Read index for DMA queue txq id (%d), index %d, " 1118 IL_ERR("Read index for DMA queue txq id (%d), index %d, "
1119 "is out of range [0-%d] %d %d.\n", txq_id, 1119 "is out of range [0-%d] %d %d.\n", txq_id,
1120 index, q->n_bd, q->write_ptr, q->read_ptr); 1120 index, q->n_bd, q->write_ptr, q->read_ptr);
1121 return 0; 1121 return 0;
@@ -1163,7 +1163,7 @@ static int il4965_tx_status_reply_compressed_ba(struct il_priv *il,
1163 1163
1164 if (unlikely(!agg->wait_for_ba)) { 1164 if (unlikely(!agg->wait_for_ba)) {
1165 if (unlikely(ba_resp->bitmap)) 1165 if (unlikely(ba_resp->bitmap))
1166 IL_ERR(il, "Received BA when not expected\n"); 1166 IL_ERR("Received BA when not expected\n");
1167 return -EINVAL; 1167 return -EINVAL;
1168 } 1168 }
1169 1169
@@ -1266,7 +1266,7 @@ void il4965_rx_reply_compressed_ba(struct il_priv *il,
1266 u16 ba_resp_scd_ssn = le16_to_cpu(ba_resp->scd_ssn); 1266 u16 ba_resp_scd_ssn = le16_to_cpu(ba_resp->scd_ssn);
1267 1267
1268 if (scd_flow >= il->hw_params.max_txq_num) { 1268 if (scd_flow >= il->hw_params.max_txq_num) {
1269 IL_ERR(il, 1269 IL_ERR(
1270 "BUG_ON scd_flow is bigger than number of queues\n"); 1270 "BUG_ON scd_flow is bigger than number of queues\n");
1271 return; 1271 return;
1272 } 1272 }