diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-08 14:46:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:18 -0500 |
commit | f86a93e1b2d05a7a38a48c91f8fb8fc7e8f1c734 (patch) | |
tree | cbf3aa632ea3e9d87c4358594065e52e45de9ad2 /drivers/net/wireless/libertas/tx.c | |
parent | e7deced05f15693cca71bfae747b8d57eadeb1b2 (diff) |
libertas: kill TxLockFlag
We don't need this. We can use adapter->currenttxskb instead.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/tx.c')
-rw-r--r-- | drivers/net/wireless/libertas/tx.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index b423ce1ff42b..131ef3fe0337 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c | |||
@@ -152,11 +152,11 @@ done: | |||
152 | netif_stop_queue(priv->dev); | 152 | netif_stop_queue(priv->dev); |
153 | if (priv->mesh_dev) | 153 | if (priv->mesh_dev) |
154 | netif_stop_queue(priv->mesh_dev); | 154 | netif_stop_queue(priv->mesh_dev); |
155 | /* freeze any packets already in our queues */ | 155 | |
156 | priv->adapter->TxLockFlag = 1; | 156 | /* Keep the skb around for when we get feedback */ |
157 | priv->adapter->currenttxskb = skb; | ||
157 | } else { | 158 | } else { |
158 | dev_kfree_skb_any(skb); | 159 | dev_kfree_skb_any(skb); |
159 | priv->adapter->currenttxskb = NULL; | ||
160 | } | 160 | } |
161 | 161 | ||
162 | lbs_deb_leave_args(LBS_DEB_TX, "ret %d", ret); | 162 | lbs_deb_leave_args(LBS_DEB_TX, "ret %d", ret); |
@@ -227,8 +227,6 @@ int lbs_process_tx(struct lbs_private *priv, struct sk_buff *skb) | |||
227 | return ret; | 227 | return ret; |
228 | } | 228 | } |
229 | 229 | ||
230 | priv->adapter->currenttxskb = skb; | ||
231 | |||
232 | ret = SendSinglePacket(priv, skb); | 230 | ret = SendSinglePacket(priv, skb); |
233 | done: | 231 | done: |
234 | lbs_deb_leave_args(LBS_DEB_TX, "ret %d", ret); | 232 | lbs_deb_leave_args(LBS_DEB_TX, "ret %d", ret); |
@@ -272,7 +270,6 @@ void lbs_send_tx_feedback(struct lbs_private *priv) | |||
272 | (1 + adapter->txretrycount - try_count) : 0; | 270 | (1 + adapter->txretrycount - try_count) : 0; |
273 | lbs_upload_rx_packet(priv, adapter->currenttxskb); | 271 | lbs_upload_rx_packet(priv, adapter->currenttxskb); |
274 | adapter->currenttxskb = NULL; | 272 | adapter->currenttxskb = NULL; |
275 | priv->adapter->TxLockFlag = 0; | ||
276 | 273 | ||
277 | if (adapter->connect_status == LBS_CONNECTED) | 274 | if (adapter->connect_status == LBS_CONNECTED) |
278 | netif_wake_queue(priv->dev); | 275 | netif_wake_queue(priv->dev); |