@@ -148,6 +148,7 @@ static struct usb_device_id blacklist_table[] = {
148148 { USB_DEVICE (0x13d3 , 0x3393 ), .driver_info = BTUSB_ATH3012 },
149149 { USB_DEVICE (0x0489 , 0xe04e ), .driver_info = BTUSB_ATH3012 },
150150 { USB_DEVICE (0x0489 , 0xe056 ), .driver_info = BTUSB_ATH3012 },
151+ { USB_DEVICE (0x0489 , 0xe04d ), .driver_info = BTUSB_ATH3012 },
151152
152153 /* Atheros AR5BBU12 with sflash firmware */
153154 { USB_DEVICE (0x0489 , 0xe02c ), .driver_info = BTUSB_IGNORE },
@@ -926,6 +927,22 @@ static void btusb_waker(struct work_struct *work)
926927 usb_autopm_put_interface (data -> intf );
927928}
928929
930+ static int btusb_setup_bcm92035 (struct hci_dev * hdev )
931+ {
932+ struct sk_buff * skb ;
933+ u8 val = 0x00 ;
934+
935+ BT_DBG ("%s" , hdev -> name );
936+
937+ skb = __hci_cmd_sync (hdev , 0xfc3b , 1 , & val , HCI_INIT_TIMEOUT );
938+ if (IS_ERR (skb ))
939+ BT_ERR ("BCM92035 command failed (%ld)" , - PTR_ERR (skb ));
940+ else
941+ kfree_skb (skb );
942+
943+ return 0 ;
944+ }
945+
929946static int btusb_probe (struct usb_interface * intf ,
930947 const struct usb_device_id * id )
931948{
@@ -1022,11 +1039,14 @@ static int btusb_probe(struct usb_interface *intf,
10221039
10231040 SET_HCIDEV_DEV (hdev , & intf -> dev );
10241041
1025- hdev -> open = btusb_open ;
1026- hdev -> close = btusb_close ;
1027- hdev -> flush = btusb_flush ;
1028- hdev -> send = btusb_send_frame ;
1029- hdev -> notify = btusb_notify ;
1042+ hdev -> open = btusb_open ;
1043+ hdev -> close = btusb_close ;
1044+ hdev -> flush = btusb_flush ;
1045+ hdev -> send = btusb_send_frame ;
1046+ hdev -> notify = btusb_notify ;
1047+
1048+ if (id -> driver_info & BTUSB_BCM92035 )
1049+ hdev -> setup = btusb_setup_bcm92035 ;
10301050
10311051 /* Interface numbers are hardcoded in the specification */
10321052 data -> isoc = usb_ifnum_to_if (data -> udev , 1 );
@@ -1065,17 +1085,6 @@ static int btusb_probe(struct usb_interface *intf,
10651085 data -> isoc = NULL ;
10661086 }
10671087
1068- if (id -> driver_info & BTUSB_BCM92035 ) {
1069- unsigned char cmd [] = { 0x3b , 0xfc , 0x01 , 0x00 };
1070- struct sk_buff * skb ;
1071-
1072- skb = bt_skb_alloc (sizeof (cmd ), GFP_KERNEL );
1073- if (skb ) {
1074- memcpy (skb_put (skb , sizeof (cmd )), cmd , sizeof (cmd ));
1075- skb_queue_tail (& hdev -> driver_init , skb );
1076- }
1077- }
1078-
10791088 if (data -> isoc ) {
10801089 err = usb_driver_claim_interface (& btusb_driver ,
10811090 data -> isoc , data );
0 commit comments