diff options
Diffstat (limited to 'drivers/net/wireless/libertas/tx.c')
-rw-r--r-- | drivers/net/wireless/libertas/tx.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index 8c3766a6e8e7..52d244ea3d97 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <linux/etherdevice.h> | 5 | #include <linux/etherdevice.h> |
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | 7 | ||
8 | #include "hostcmd.h" | 8 | #include "host.h" |
9 | #include "radiotap.h" | 9 | #include "radiotap.h" |
10 | #include "decl.h" | 10 | #include "decl.h" |
11 | #include "defs.h" | 11 | #include "defs.h" |
@@ -131,12 +131,7 @@ netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
131 | txpd->tx_packet_length = cpu_to_le16(pkt_len); | 131 | txpd->tx_packet_length = cpu_to_le16(pkt_len); |
132 | txpd->tx_packet_location = cpu_to_le32(sizeof(struct txpd)); | 132 | txpd->tx_packet_location = cpu_to_le32(sizeof(struct txpd)); |
133 | 133 | ||
134 | if (dev == priv->mesh_dev) { | 134 | lbs_mesh_set_txpd(priv, dev, txpd); |
135 | if (priv->mesh_fw_ver == MESH_FW_OLD) | ||
136 | txpd->tx_control |= cpu_to_le32(TxPD_MESH_FRAME); | ||
137 | else if (priv->mesh_fw_ver == MESH_FW_NEW) | ||
138 | txpd->u.bss.bss_num = MESH_IFACE_ID; | ||
139 | } | ||
140 | 135 | ||
141 | lbs_deb_hex(LBS_DEB_TX, "txpd", (u8 *) &txpd, sizeof(struct txpd)); | 136 | lbs_deb_hex(LBS_DEB_TX, "txpd", (u8 *) &txpd, sizeof(struct txpd)); |
142 | 137 | ||
@@ -203,7 +198,7 @@ void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count) | |||
203 | if (priv->connect_status == LBS_CONNECTED) | 198 | if (priv->connect_status == LBS_CONNECTED) |
204 | netif_wake_queue(priv->dev); | 199 | netif_wake_queue(priv->dev); |
205 | 200 | ||
206 | if (priv->mesh_dev && (priv->mesh_connect_status == LBS_CONNECTED)) | 201 | if (priv->mesh_dev && lbs_mesh_connected(priv)) |
207 | netif_wake_queue(priv->mesh_dev); | 202 | netif_wake_queue(priv->mesh_dev); |
208 | } | 203 | } |
209 | EXPORT_SYMBOL_GPL(lbs_send_tx_feedback); | 204 | EXPORT_SYMBOL_GPL(lbs_send_tx_feedback); |