Don't ever return -errno from orinoco_xmit() - the network layer doesn't
expect it.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
if (! netif_running(dev)) {
printk(KERN_ERR "%s: Tx on stopped device!\n",
dev->name);
if (! netif_running(dev)) {
printk(KERN_ERR "%s: Tx on stopped device!\n",
dev->name);
}
if (netif_queue_stopped(dev)) {
printk(KERN_DEBUG "%s: Tx while transmitter busy!\n",
dev->name);
}
if (netif_queue_stopped(dev)) {
printk(KERN_DEBUG "%s: Tx while transmitter busy!\n",
dev->name);
}
if (orinoco_lock(priv, &flags) != 0) {
printk(KERN_ERR "%s: orinoco_xmit() called while hw_unavailable\n",
dev->name);
}
if (orinoco_lock(priv, &flags) != 0) {
printk(KERN_ERR "%s: orinoco_xmit() called while hw_unavailable\n",
dev->name);
}
if (! netif_carrier_ok(dev) || (priv->iw_mode == IW_MODE_MONITOR)) {
}
if (! netif_carrier_ok(dev) || (priv->iw_mode == IW_MODE_MONITOR)) {
stats->tx_errors++;
orinoco_unlock(priv, &flags);
dev_kfree_skb(skb);
stats->tx_errors++;
orinoco_unlock(priv, &flags);
dev_kfree_skb(skb);
}
/* Length of the packet body */
}
/* Length of the packet body */
fail:
orinoco_unlock(priv, &flags);
fail:
orinoco_unlock(priv, &flags);
}
static void __orinoco_ev_alloc(struct net_device *dev, hermes_t *hw)
}
static void __orinoco_ev_alloc(struct net_device *dev, hermes_t *hw)