"Rx URB allocation failed\n");
goto dealloc;
}
- cardp->rx_urb_recall = 0;
-
cardp->bulk_in_size =
le16_to_cpu(endpoint->wMaxPacketSize);
cardp->bulk_in_endpointAddr =
cardp->priv = priv;
cardp->priv->fw_ready = 1;
- cardp->eth_dev = priv->dev;
-
priv->hw_host_to_card = if_usb_host_to_card;
priv->hw_get_int_status = if_usb_get_int_status;
priv->hw_read_event_cause = if_usb_read_event_cause;
if (priv->psstate != PS_STATE_FULL_POWER)
return -1;
- netif_device_detach(cardp->eth_dev);
+ netif_device_detach(priv->dev);
netif_device_detach(priv->mesh_dev);
/* Unlink tx & rx urb */
usb_kill_urb(cardp->tx_urb);
usb_kill_urb(cardp->rx_urb);
- cardp->rx_urb_recall = 1;
-
lbs_deb_leave(LBS_DEB_USB);
return 0;
}
lbs_deb_enter(LBS_DEB_USB);
- cardp->rx_urb_recall = 0;
-
if_usb_submit_rx_urb(cardp);
- netif_device_attach(cardp->eth_dev);
+ netif_device_attach(priv->dev);
netif_device_attach(priv->mesh_dev);
lbs_deb_leave(LBS_DEB_USB);
/** USB card description structure*/
struct usb_card_rec {
- struct net_device *eth_dev;
struct usb_device *udev;
struct urb *rx_urb, *tx_urb;
struct lbs_private *priv;
u32 usb_event_cause;
u8 usb_int_cause;
- u8 rx_urb_recall;
-
s8 bootcmdresp;
};