aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragx <agx>2007-01-14 21:15:54 +0000
committeragx <agx>2007-01-14 21:15:54 +0000
commitc1997965729a20a4704d2dfed2064c5011741b44 (patch)
tree330d51b656db72206edf667e32aab10be499a4b4
parentf7714c2e3e0783c4f06ff8cce96f2c369c47f511 (diff)
start the bss-timeout timer at the very end of init_new_device
-rw-r--r--at76c503.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/at76c503.c b/at76c503.c
index d0317e3..2cf119a 100644
--- a/at76c503.c
+++ b/at76c503.c
@@ -6535,7 +6535,6 @@ static void at76c503_delete_device(struct at76c503 *dev)
static int at76c503_alloc_urbs(struct at76c503 *dev)
{
struct usb_interface *interface = dev->interface;
-// struct usb_host_interface *iface_desc = &interface->altsetting[0];
struct usb_endpoint_descriptor *endpoint;
struct usb_device *udev = dev->udev;
int i, buffer_size;
@@ -6700,8 +6699,6 @@ static int init_new_device(struct at76c503 *dev)
dbg(DBG_DEVSTART, "USB interface: %d endpoints",
NUM_EP(dev->interface));
- /* we let this timer run the whole time this driver instance lives */
- mod_timer(&dev->bss_list_timer, jiffies+BSS_LIST_TIMEOUT);
#ifdef CONFIG_IPAQ_HANDHELD
if (machine_is_h5400 ())
@@ -6802,6 +6799,9 @@ static int init_new_device(struct at76c503 *dev)
info("registered %s", dev->netdev->name);
dev->netdev_registered = 1;
+ /* we let this timer run the whole time this driver instance lives */
+ mod_timer(&dev->bss_list_timer, jiffies+BSS_LIST_TIMEOUT);
+
return 0;
error: