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>
This commit is contained in:

committed by
David S. Miller

parent
0fc480987e
commit
d0cf9c0dad
@@ -6,7 +6,7 @@
|
||||
#ifndef _LBS_DECL_H_
|
||||
#define _LBS_DECL_H_
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
@@ -41,7 +41,8 @@ u8 lbs_data_rate_to_fw_index(u32 rate);
|
||||
int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len);
|
||||
void lbs_complete_command(struct lbs_private *priv, struct cmd_ctrl_node *cmd,
|
||||
int result);
|
||||
int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
int lbs_set_regiontable(struct lbs_private *priv, u8 region, u8 band);
|
||||
|
||||
int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
|
||||
|
@@ -1647,7 +1647,8 @@ static int lbs_rtap_stop(struct net_device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lbs_rtap_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
static netdev_tx_t lbs_rtap_hard_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev)
|
||||
{
|
||||
netif_stop_queue(dev);
|
||||
return NETDEV_TX_BUSY;
|
||||
|
@@ -57,19 +57,17 @@ static u32 convert_radiotap_rate_to_mv(u8 rate)
|
||||
* @param skb A pointer to skb which includes TX packet
|
||||
* @return 0 or -1
|
||||
*/
|
||||
int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct lbs_private *priv = dev->ml_priv;
|
||||
struct txpd *txpd;
|
||||
char *p802x_hdr;
|
||||
uint16_t pkt_len;
|
||||
int ret;
|
||||
netdev_tx_t ret = NETDEV_TX_OK;
|
||||
|
||||
lbs_deb_enter(LBS_DEB_TX);
|
||||
|
||||
ret = NETDEV_TX_OK;
|
||||
|
||||
/* We need to protect against the queues being restarted before
|
||||
we get round to stopping them */
|
||||
spin_lock_irqsave(&priv->driver_lock, flags);
|
||||
|
Reference in New Issue
Block a user