diff options
Diffstat (limited to 'drivers/net/wireless/libertas/tx.c')
-rw-r--r-- | drivers/net/wireless/libertas/tx.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index d4b13478c9a7..964321fd5e69 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c | |||
@@ -68,7 +68,7 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
68 | u32 new_rate; | 68 | u32 new_rate; |
69 | u8 *ptr = priv->adapter->tmptxbuf; | 69 | u8 *ptr = priv->adapter->tmptxbuf; |
70 | 70 | ||
71 | ENTER(); | 71 | lbs_deb_enter(LBS_DEB_TX); |
72 | 72 | ||
73 | if (priv->adapter->surpriseremoved) | 73 | if (priv->adapter->surpriseremoved) |
74 | return -1; | 74 | return -1; |
@@ -78,7 +78,7 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
78 | min_t(unsigned int, skb->len, 100)); | 78 | min_t(unsigned int, skb->len, 100)); |
79 | 79 | ||
80 | if (!skb->len || (skb->len > MRVDRV_ETH_TX_PACKET_BUFFER_SIZE)) { | 80 | if (!skb->len || (skb->len > MRVDRV_ETH_TX_PACKET_BUFFER_SIZE)) { |
81 | lbs_pr_debug(1, "Tx error: Bad skb length %d : %zd\n", | 81 | lbs_deb_tx("tx err: skb length %d 0 or > %zd\n", |
82 | skb->len, MRVDRV_ETH_TX_PACKET_BUFFER_SIZE); | 82 | skb->len, MRVDRV_ETH_TX_PACKET_BUFFER_SIZE); |
83 | ret = -1; | 83 | ret = -1; |
84 | goto done; | 84 | goto done; |
@@ -138,13 +138,13 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
138 | sizeof(struct txpd)); | 138 | sizeof(struct txpd)); |
139 | 139 | ||
140 | if (ret) { | 140 | if (ret) { |
141 | lbs_pr_debug(1, "Tx error: libertas_sbi_host_to_card failed: 0x%X\n", ret); | 141 | lbs_deb_tx("tx err: libertas_sbi_host_to_card returned 0x%X\n", ret); |
142 | goto done; | 142 | goto done; |
143 | } | 143 | } |
144 | 144 | ||
145 | lbs_pr_debug(1, "SendSinglePacket succeeds\n"); | 145 | lbs_deb_tx("SendSinglePacket succeeds\n"); |
146 | 146 | ||
147 | done: | 147 | done: |
148 | if (!ret) { | 148 | if (!ret) { |
149 | priv->stats.tx_packets++; | 149 | priv->stats.tx_packets++; |
150 | priv->stats.tx_bytes += skb->len; | 150 | priv->stats.tx_bytes += skb->len; |
@@ -166,7 +166,7 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
166 | priv->adapter->currenttxskb = NULL; | 166 | priv->adapter->currenttxskb = NULL; |
167 | } | 167 | } |
168 | 168 | ||
169 | LEAVE(); | 169 | lbs_deb_leave_args(LBS_DEB_TX, "ret %d", ret); |
170 | return ret; | 170 | return ret; |
171 | } | 171 | } |
172 | 172 | ||
@@ -214,8 +214,7 @@ int libertas_process_tx(wlan_private * priv, struct sk_buff *skb) | |||
214 | { | 214 | { |
215 | int ret = -1; | 215 | int ret = -1; |
216 | 216 | ||
217 | ENTER(); | 217 | lbs_deb_enter(LBS_DEB_TX); |
218 | |||
219 | lbs_dbg_hex("TX Data", skb->data, min_t(unsigned int, skb->len, 100)); | 218 | lbs_dbg_hex("TX Data", skb->data, min_t(unsigned int, skb->len, 100)); |
220 | 219 | ||
221 | if (priv->wlan_dev.dnld_sent) { | 220 | if (priv->wlan_dev.dnld_sent) { |
@@ -234,7 +233,7 @@ int libertas_process_tx(wlan_private * priv, struct sk_buff *skb) | |||
234 | 233 | ||
235 | ret = SendSinglePacket(priv, skb); | 234 | ret = SendSinglePacket(priv, skb); |
236 | done: | 235 | done: |
237 | LEAVE(); | 236 | lbs_deb_leave_args(LBS_DEB_TX, "ret %d", ret); |
238 | return ret; | 237 | return ret; |
239 | } | 238 | } |
240 | 239 | ||