aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:57 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:14:04 -0400
commitd0cf9c0dadcdc89a755bcb301cfc9c796eb28ccf (patch)
treec201ed345e104100288d57c8b3ae46d486b56118 /drivers/net/wireless/libertas
parent0fc480987e69f22b9212f087545b4d1ca6950807 (diff)
wireless: convert drivers to netdev_tx_t
Mostly just simple conversions: * ray_cs had bogus return of NET_TX_LOCKED but driver was not using NETIF_F_LLTX * hostap and ipw2x00 had some code that returned value from a called function that also had to change to return netdev_tx_t Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/decl.h5
-rw-r--r--drivers/net/wireless/libertas/main.c3
-rw-r--r--drivers/net/wireless/libertas/tx.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h
index 0b84bdca0726..8b15380ae6e1 100644
--- a/drivers/net/wireless/libertas/decl.h
+++ b/drivers/net/wireless/libertas/decl.h
@@ -6,7 +6,7 @@
6#ifndef _LBS_DECL_H_ 6#ifndef _LBS_DECL_H_
7#define _LBS_DECL_H_ 7#define _LBS_DECL_H_
8 8
9#include <linux/device.h> 9#include <linux/netdevice.h>
10 10
11#include "defs.h" 11#include "defs.h"
12 12
@@ -41,7 +41,8 @@ u8 lbs_data_rate_to_fw_index(u32 rate);
41int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len); 41int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len);
42void lbs_complete_command(struct lbs_private *priv, struct cmd_ctrl_node *cmd, 42void lbs_complete_command(struct lbs_private *priv, struct cmd_ctrl_node *cmd,
43 int result); 43 int result);
44int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev); 44netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
45 struct net_device *dev);
45int lbs_set_regiontable(struct lbs_private *priv, u8 region, u8 band); 46int lbs_set_regiontable(struct lbs_private *priv, u8 region, u8 band);
46 47
47int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); 48int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 8df1cfd5f93a..87b4e497faa2 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -1647,7 +1647,8 @@ static int lbs_rtap_stop(struct net_device *dev)
1647 return 0; 1647 return 0;
1648} 1648}
1649 1649
1650static int lbs_rtap_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) 1650static netdev_tx_t lbs_rtap_hard_start_xmit(struct sk_buff *skb,
1651 struct net_device *dev)
1651{ 1652{
1652 netif_stop_queue(dev); 1653 netif_stop_queue(dev);
1653 return NETDEV_TX_BUSY; 1654 return NETDEV_TX_BUSY;
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c
index 160cfd8311c0..4c018f7a0a8d 100644
--- a/drivers/net/wireless/libertas/tx.c
+++ b/drivers/net/wireless/libertas/tx.c
@@ -57,19 +57,17 @@ static u32 convert_radiotap_rate_to_mv(u8 rate)
57 * @param skb A pointer to skb which includes TX packet 57 * @param skb A pointer to skb which includes TX packet
58 * @return 0 or -1 58 * @return 0 or -1
59 */ 59 */
60int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) 60netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
61{ 61{
62 unsigned long flags; 62 unsigned long flags;
63 struct lbs_private *priv = dev->ml_priv; 63 struct lbs_private *priv = dev->ml_priv;
64 struct txpd *txpd; 64 struct txpd *txpd;
65 char *p802x_hdr; 65 char *p802x_hdr;
66 uint16_t pkt_len; 66 uint16_t pkt_len;
67 int ret; 67 netdev_tx_t ret = NETDEV_TX_OK;
68 68
69 lbs_deb_enter(LBS_DEB_TX); 69 lbs_deb_enter(LBS_DEB_TX);
70 70
71 ret = NETDEV_TX_OK;
72
73 /* We need to protect against the queues being restarted before 71 /* We need to protect against the queues being restarted before
74 we get round to stopping them */ 72 we get round to stopping them */
75 spin_lock_irqsave(&priv->driver_lock, flags); 73 spin_lock_irqsave(&priv->driver_lock, flags);