[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] [PATCH] USB Bluetooth driver patch



> Here's a patch for the USB Bluetooth driver against 2.4.3-pre3 that
> fixes a problem that the driver has when the device is unplugged without
> shutting down the Bluetooth stack first.

Thanks for the patch! It didn't solve the problem in my case (P9A,
2.2.18). Here's a simple fix that works for me.


*** linux-2.2.18/drivers/usb/bluetooth.c        Mon Dec 11 02:49:43 2000
--- linux/drivers/usb/bluetooth_fix.c   Mon Mar 12 12:09:13 2001
***************
*** 894,901 ****
--- 894,903 ----
                bluetooth->bulk_packet_pos = 0;
        }

  exit:
+       if (!bluetooth || !bluetooth->active) { return; }
+
        FILL_BULK_URB(bluetooth->read_urb, bluetooth->dev,
                      usb_rcvbulkpipe(bluetooth->dev, bluetooth->bulk_in_endpointAddress),
                      bluetooth->bulk_in_buffer, bluetooth->bulk_in_buffer_size,
                      bluetooth_read_bulk_callback, bluetooth);

-- 
Mikko Rahkonen <rahkomi@xxxxxxx.fi>


-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com