kuba-moo / mt7630e

Mediatek driver for MT7630E WiFi+BT combo with my fixes
42 stars 8 forks source link

Bluetooth on 3.19.0 (Ubuntu 15.04) #7

Open sergeyksv opened 9 years ago

sergeyksv commented 9 years ago

Sorry to bother you, just upgraded to subject and bluetooth stops working. Any clue how I can troubleshoot it. What to check etc. Nothing unusual in dmesg.

kuba-moo commented 9 years ago

TBH I know very little about BT stack. Does your system see the device but it doesn't work or is there no device at all? Did you try loading the BT module (mt76xx) manually? As far as I understand BT module just switches the device into appropriate mode and then it is handled by the generic btusb driver so we would have to find out at which stage things fail to solve this.

sergeyksv commented 9 years ago

Initially I just used your make file, and everything works. Later I update to 15.04 and it stop working and I didn't change anything. I tried to reinstall driver manually nothing changes. I believe that probably this is somehow related to hardware (asus laptop) disabling of blluetooth radio. Initially after boot I didn't see now any mentions about mediatek bluetooth. But if to suspend laptop and then bring it back I see following in dmesg:

[   30.980106] usb 1-5: new high-speed USB device number 6 using xhci_hcd
[   31.109644] usb 1-5: New USB device found, idVendor=0e8d, idProduct=763f
[   31.109646] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   31.109648] usb 1-5: Product: BT
[   31.109648] usb 1-5: Manufacturer: MediaTek
[   31.109649] usb 1-5: SerialNumber: 1.0

However this still didn't make it working. This symptom is sound very similar to this: http://ubuntuforums.org/showthread.php?t=2181558

However wi-fi work fine.

kuba-moo commented 9 years ago

Please try rfkill list command to see if the device is indeed blocked.

sergeyksv commented 9 years ago

device is not blocked. I noticed another thing. Now if I do "modprobe mt76xx" as see messages in dmesg that "usbcore: registered new interface driver mtk_bt_loader". So it didn't loaded after boot?

After then if to suspend/unsuspend laptop I see this:

[  428.287715] chip id = 76300002
[  428.289908] Firmware file "mt76x0.bin" Found 
[  428.289909] bulk_tx_ep = 2
[  428.290076] mtk_loader: done
[  428.290077] setup_packet in urb: size=8
[  428.290078] 20 00 00 00 00 00 34 00 
transfer_buffer in urb: size=52
[  428.290080] c3 fc 31 01 00 00 00 00 00 00 00 00 ff fc 03 00 00 00 00 80 8d 0e 3f 76 05 b8 88 00 00 00 00 00 00 b8 27 f2 02 88 ff ff 5e 00 00 00 00 00 00 00 00 00 00 00 
submit urb:
[  428.290091] usb_send_vendor_hci_cmd: return=0
[  428.290092] mtk_bt_loader_probe: ret = 0
[  428.290194] usb_vendor_hci_cmd_complete 
[  428.290307] usb 1-5: USB disconnect, device number 5
[  428.290380] mtk_bt_loader_disconnect
[  428.758861] usb 1-5: new high-speed USB device number 6 using xhci_hcd
[  428.888198] usb 1-5: New USB device found, idVendor=0e8d, idProduct=763f
[  428.888203] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  428.888205] usb 1-5: Product: BT
[  428.888207] usb 1-5: Manufacturer: MediaTek
[  428.888208] usb 1-5: SerialNumber: 1.0

Though it still doesn't work after that

tawfekov commented 9 years ago

I had the same issue exactly

JaxonDvl commented 8 years ago

Same issue with bluetooth here same driver on an asus laptop, wifi works thou.

tobiasBora commented 8 years ago

First thank you for your work ! I have exactly the same issue, wifi Works but no bluetooth... If you would like to do any test I would be happy to help you !

kmmbvnr commented 8 years ago

Same on ubuntu 15.10

$ rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: asus-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
$ uname -r
4.2.0-15-generic
[    1.620408] usb 1-5: New USB device found, idVendor=0489, idProduct=e069
[    1.620411] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.620413] usb 1-5: Product: BT
[    1.620414] usb 1-5: Manufacturer: MediaTek
[    1.620415] usb 1-5: SerialNumber: 1.0
fabiocarrara commented 8 years ago

Same problem on my machine running Ubuntu 15.10 with kernel 4.2.0-17-generic, wifi is ok but bluetooth is not working. Don't know if this may help, but in my configuration the problem seems to be the HCI device initialization. The device is identified as hci0:

$ hciconfig hci0 -a
hci0:   Type: BR/EDR  Bus: USB
    BD Address: 54:35:30:56:92:56  ACL MTU: 1021:4  SCO MTU: 128:2
    DOWN 
    RX bytes:8120 acl:0 sco:0 events:434 errors:0
    TX bytes:5194 acl:0 sco:0 commands:434 errors:0
    Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH HOLD SNIFF PARK 
    Link mode: SLAVE ACCEPT 

When trying to bring it up, I get this error:

$ sudo hciconfig hci0 up
Can't init device hci0: Invalid request code (56)

Using btmon to trace HCI commands, it seems that the error is caused by an unsupported HCI command (Read Local Supported Codecs to which the device responds with Unknown HCI Command). Here's the output of btmon:

$ sudo btmon
Bluetooth monitor ver 5.35
= New Index: 54:35:30:56:92:56 (BR/EDR,USB,hci0)                                                                                       [hci0] 0.847727
< HCI Command: Reset (0x03|0x0003) plen 0                                                                                              [hci0] 8.768316
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.951028
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0                                                                      [hci0] 8.951083
> HCI Event: Command Complete (0x0e) plen 12                                                                                           [hci0] 8.951371
      Read Local Supported Features (0x04|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
          3 slot packets
          5 slot packets
          Encryption
          Slot offset
          Timing accuracy
          Role switch
          Hold mode
          Sniff mode
          Park state
          Power control requests
          Channel quality driven data rate (CQDDR)
          SCO link
          HV2 packets
          HV3 packets
          u-law log synchronous data
          A-law log synchronous data
          CVSD synchronous data
          Paging parameter negotiation
          Power control
          Transparent synchronous data
          Broadcast Encryption
          Enhanced Data Rate ACL 2 Mbps mode
          Enhanced Data Rate ACL 3 Mbps mode
          Enhanced inquiry scan
          Interlaced inquiry scan
          Interlaced page scan
          RSSI with inquiry results
          Extended SCO link (EV3 packets)
          EV4 packets
          EV5 packets
          AFH capable slave
          AFH classification slave
          LE Supported (Controller)
          3-slot Enhanced Data Rate ACL packets
          5-slot Enhanced Data Rate ACL packets
          Sniff subrating
          Pause encryption
          AFH capable master
          AFH classification master
          Enhanced Data Rate eSCO 2 Mbps mode
          Enhanced Data Rate eSCO 3 Mbps mode
          3-slot Enhanced Data Rate eSCO packets
          Extended Inquiry Response
          Simultaneous LE and BR/EDR (Controller)
          Secure Simple Pairing
          Encapsulated PDU
          Non-flushable Packet Boundary Flag
          Link Supervision Timeout Changed Event
          Inquiry TX Power Level
          Enhanced Power Control
          Extended features
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0                                                                     [hci0] 8.951439
> HCI Event: Command Complete (0x0e) plen 12                                                                                           [hci0] 8.951710
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Bluetooth 4.0 (0x06) - Revision 6 (0x0006)
        LMP version: Bluetooth 4.0 (0x06) - Subversion 6 (0x0006)
        Manufacturer: MediaTek, Inc. (70)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0                                                                                       [hci0] 8.951736
> HCI Event: Command Complete (0x0e) plen 10                                                                                           [hci0] 8.952120
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 54:35:30:56:92:56 (Hon Hai Precision Ind. Co.,Ltd.)
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0                                                                                   [hci0] 8.952252
> HCI Event: Command Complete (0x0e) plen 11                                                                                           [hci0] 8.952620
      Read Buffer Size (0x04|0x0005) ncmd 1
        Status: Success (0x00)
        ACL MTU: 1021 ACL max packet: 4
        SCO MTU: 128  SCO max packet: 2
< HCI Command: Read Class of Device (0x03|0x0023) plen 0                                                                               [hci0] 8.952684
> HCI Event: Command Complete (0x0e) plen 7                                                                                            [hci0] 8.952995
      Read Class of Device (0x03|0x0023) ncmd 1
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
< HCI Command: Read Local Name (0x03|0x0014) plen 0                                                                                    [hci0] 8.953018
> HCI Event: Command Complete (0x0e) plen 252                                                                                          [hci0] 8.955331
      Read Local Name (0x03|0x0014) ncmd 1
        Status: Success (0x00)
        Name: Ralink Bluetooth Test Device V2.0.0
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0                                                                                 [hci0] 8.955368
> HCI Event: Command Complete (0x0e) plen 6                                                                                            [hci0] 8.955581
      Read Voice Setting (0x03|0x0025) ncmd 1
        Status: Success (0x00)
        Setting: 0x0060
          Input Coding: Linear
          Input Data Format: 2's complement
          Input Sample Size: 16-bit
          # of bits padding at MSB: 0
          Air Coding Format: CVSD
< HCI Command: Read Number of Supported IAC (0x03|0x0038) plen 0                                                                       [hci0] 8.955593
> HCI Event: Command Complete (0x0e) plen 5                                                                                            [hci0] 8.955830
      Read Number of Supported IAC (0x03|0x0038) ncmd 1
        Status: Success (0x00)
        Number of IAC: 2
< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0                                                                               [hci0] 8.955840
> HCI Event: Command Complete (0x0e) plen 8                                                                                            [hci0] 8.956214
      Read Current IAC LAP (0x03|0x0039) ncmd 1
        Status: Success (0x00)
        Number of IAC: 1
        Access code: 0x9e8b33 (General Inquiry)
< HCI Command: Set Event Filter (0x03|0x0005) plen 1                                                                                   [hci0] 8.956238
        Type: Clear All Filters (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.956580
      Set Event Filter (0x03|0x0005) ncmd 1
        Status: Success (0x00)
< HCI Command: Write Connection Accept Timeout (0x03|0x0016) plen 2                                                                    [hci0] 8.956590
        Timeout: 20000.000 msec (0x7d00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.956830
      Write Connection Accept Timeout (0x03|0x0016) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0                                                                                [hci0] 8.956840
> HCI Event: Command Complete (0x0e) plen 7                                                                                            [hci0] 8.957219
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 8
< HCI Command: LE Read Local Supported Features (0x08|0x0003) plen 0                                                                   [hci0] 8.957229
> HCI Event: Command Complete (0x0e) plen 12                                                                                           [hci0] 8.957581
      LE Read Local Supported Features (0x08|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0                                                                           [hci0] 8.957592
> HCI Event: Command Complete (0x0e) plen 12                                                                                           [hci0] 8.957830
      LE Read Supported States (0x08|0x001c) ncmd 1
        Status: Success (0x00)
        States: 0x000000001fffffff
          Non-connectable Advertising State
          Scannable Advertising State
          Connectable Advertising State
          High Duty Cycle Directed Advertising State
          Passive Scanning State
          Active Scanning State
          Initiating State
            and Connection State (Master Role)
          Connection State (Slave Role)
          Non-connectable Advertising State
            and Passive Scanning State
          Scannable Advertising State
            and Passive Scanning State
          Connectable Advertising State
            and Passive Scanning State
          High Duty Cycle Directed Advertising State
            and Passive Scanning State
          Non-connectable Advertising State
            and Active Scanning State
          Scannable Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Active Scanning State
          High Duty Cycle Directed Advertising State
            and Active Scanning State
          Non-connectable Advertising State
            and Initiating State
          Scannable Advertising State
            and Initiating State
          Non-connectable Advertising State
            and Connection State (Master Role)
          Scannable Advertising State
            and Connection State (Master Role)
          Non-connectable Advertising State
            and Connection State (Slave Role)
          Scannable Advertising State
            and Connection State (Slave Role)
          Passive Scanning State
            and Initiating State
          Active Scanning State
            and Initiating State
          Passive Scanning State
            and Connection State (Master Role)
          Active Scanning State
            and Connection State (Master Role)
          Passive Scanning State
            and Connection State (Slave Role)
          Active Scanning State
            and Connection State (Slave Role)
          Initiating State
            and Connection State (Master Role)
            and Master Role & Master Role
< HCI Command: LE Read White List Size (0x08|0x000f) plen 0                                                                            [hci0] 8.957840
> HCI Event: Command Complete (0x0e) plen 5                                                                                            [hci0] 8.958080
      LE Read White List Size (0x08|0x000f) ncmd 1
        Status: Success (0x00)
        Size: 25
< HCI Command: LE Clear White List (0x08|0x0010) plen 0                                                                                [hci0] 8.958089
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.958330
      LE Clear White List (0x08|0x0010) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Supported Commands (0x04|0x0002) plen 0                                                                      [hci0] 8.958340
> HCI Event: Command Complete (0x0e) plen 68                                                                                           [hci0] 8.959205
      Read Local Supported Commands (0x04|0x0002) ncmd 1
        Status: Success (0x00)
        Commands: 175 entries
          Inquiry (Octet 0 - Bit 0)
          Inquiry Cancel (Octet 0 - Bit 1)
          Periodic Inquiry Mode (Octet 0 - Bit 2)
          Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
          Create Connection (Octet 0 - Bit 4)
          Disconnect (Octet 0 - Bit 5)
          Add SCO Connection (Octet 0 - Bit 6)
          Create Connection Cancel (Octet 0 - Bit 7)
          Accept Connection Request (Octet 1 - Bit 0)
          Reject Connection Request (Octet 1 - Bit 1)
          Link Key Request Reply (Octet 1 - Bit 2)
          Link Key Request Negative Reply (Octet 1 - Bit 3)
          PIN Code Request Reply (Octet 1 - Bit 4)
          PIN Code Request Negative Reply (Octet 1 - Bit 5)
          Change Connection Packet Type (Octet 1 - Bit 6)
          Authentication Requested (Octet 1 - Bit 7)
          Set Connection Encryption (Octet 2 - Bit 0)
          Change Connection Link Key (Octet 2 - Bit 1)
          Master Link Key (Octet 2 - Bit 2)
          Remote Name Request (Octet 2 - Bit 3)
          Remote Name Request Cancel (Octet 2 - Bit 4)
          Read Remote Supported Features (Octet 2 - Bit 5)
          Read Remote Extended Features (Octet 2 - Bit 6)
          Read Remote Version Information (Octet 2 - Bit 7)
          Read Clock Offset (Octet 3 - Bit 0)
          Read LMP Handle (Octet 3 - Bit 1)
          Hold Mode (Octet 4 - Bit 1)
          Sniff Mode (Octet 4 - Bit 2)
          Exit Sniff Mode (Octet 4 - Bit 3)
          Park State (Octet 4 - Bit 4)
          Exit Park State (Octet 4 - Bit 5)
          QoS Setup (Octet 4 - Bit 6)
          Role Discovery (Octet 4 - Bit 7)
          Switch Role (Octet 5 - Bit 0)
          Read Link Policy Settings (Octet 5 - Bit 1)
          Write Link Policy Settings (Octet 5 - Bit 2)
          Read Default Link Policy Settings (Octet 5 - Bit 3)
          Write Default Link Policy Settings (Octet 5 - Bit 4)
          Flow Specification (Octet 5 - Bit 5)
          Set Event Mask (Octet 5 - Bit 6)
          Reset (Octet 5 - Bit 7)
          Set Event Filter (Octet 6 - Bit 0)
          Flush (Octet 6 - Bit 1)
          Read PIN Type (Octet 6 - Bit 2)
          Write PIN Type (Octet 6 - Bit 3)
          Create New Unit Key (Octet 6 - Bit 4)
          Read Stored Link Key (Octet 6 - Bit 5)
          Write Stored Link Key (Octet 6 - Bit 6)
          Delete Stored Link Key (Octet 6 - Bit 7)
          Write Local Name (Octet 7 - Bit 0)
          Read Local Name (Octet 7 - Bit 1)
          Read Connection Accept Timeout (Octet 7 - Bit 2)
          Write Connection Accept Timeout (Octet 7 - Bit 3)
          Read Page Timeout (Octet 7 - Bit 4)
          Write Page Timeout (Octet 7 - Bit 5)
          Read Scan Enable (Octet 7 - Bit 6)
          Write Scan Enable (Octet 7 - Bit 7)
          Read Page Scan Activity (Octet 8 - Bit 0)
          Write Page Scan Activity (Octet 8 - Bit 1)
          Read Inquiry Scan Activity (Octet 8 - Bit 2)
          Write Inquiry Scan Activity (Octet 8 - Bit 3)
          Read Authentication Enable (Octet 8 - Bit 4)
          Write Authentication Enable (Octet 8 - Bit 5)
          Read Encryption Mode (Octet 8 - Bit 6)
          Write Encryption Mode (Octet 8 - Bit 7)
          Read Class of Device (Octet 9 - Bit 0)
          Write Class of Device (Octet 9 - Bit 1)
          Read Voice Setting (Octet 9 - Bit 2)
          Write Voice Setting (Octet 9 - Bit 3)
          Read Automatic Flush Timeout (Octet 9 - Bit 4)
          Write Automatic Flush Timeout (Octet 9 - Bit 5)
          Read Num Broadcast Retransmissions (Octet 9 - Bit 6)
          Write Num Broadcast Retransmissions (Octet 9 - Bit 7)
          Read Hold Mode Activity (Octet 10 - Bit 0)
          Write Hold Mode Activity (Octet 10 - Bit 1)
          Read Transmit Power Level (Octet 10 - Bit 2)
          Read Sync Flow Control Enable (Octet 10 - Bit 3)
          Write Sync Flow Control Enable (Octet 10 - Bit 4)
          Set Controller To Host Flow Control (Octet 10 - Bit 5)
          Host Buffer Size (Octet 10 - Bit 6)
          Host Number of Completed Packets (Octet 10 - Bit 7)
          Read Link Supervision Timeout (Octet 11 - Bit 0)
          Write Link Supervision Timeout (Octet 11 - Bit 1)
          Read Number of Supported IAC (Octet 11 - Bit 2)
          Read Current IAC LAP (Octet 11 - Bit 3)
          Write Current IAC LAP (Octet 11 - Bit 4)
          Read Page Scan Period Mode (Octet 11 - Bit 5)
          Write Page Scan Period Mode (Octet 11 - Bit 6)
          Read Page Scan Mode (Octet 11 - Bit 7)
          Write Page Scan Mode (Octet 12 - Bit 0)
          Set AFH Host Channel Classification (Octet 12 - Bit 1)
          Read Inquiry Scan Type (Octet 12 - Bit 4)
          Write Inquiry Scan Type (Octet 12 - Bit 5)
          Read Inquiry Mode (Octet 12 - Bit 6)
          Write Inquiry Mode (Octet 12 - Bit 7)
          Read Page Scan Type (Octet 13 - Bit 0)
          Write Page Scan Type (Octet 13 - Bit 1)
          Read AFH Channel Assessment Mode (Octet 13 - Bit 2)
          Write AFH Channel Assessment Mode (Octet 13 - Bit 3)
          Read Local Version Information (Octet 14 - Bit 3)
          Read Local Supported Features (Octet 14 - Bit 5)
          Read Local Extended Features (Octet 14 - Bit 6)
          Read Buffer Size (Octet 14 - Bit 7)
          Read Country Code (Octet 15 - Bit 0)
          Read BD ADDR (Octet 15 - Bit 1)
          Read Failed Contact Counter (Octet 15 - Bit 2)
          Reset Failed Contact Counter (Octet 15 - Bit 3)
          Read Link Quality (Octet 15 - Bit 4)
          Read RSSI (Octet 15 - Bit 5)
          Read AFH Channel Map (Octet 15 - Bit 6)
          Read Clock (Octet 15 - Bit 7)
          Read Loopback Mode (Octet 16 - Bit 0)
          Write Loopback Mode (Octet 16 - Bit 1)
          Enable Device Under Test Mode (Octet 16 - Bit 2)
          Setup Synchronous Connection (Octet 16 - Bit 3)
          Accept Synchronous Connection Request (Octet 16 - Bit 4)
          Reject Synchronous Connection Request (Octet 16 - Bit 5)
          Read Extended Inquiry Response (Octet 17 - Bit 0)
          Write Extended Inquiry Response (Octet 17 - Bit 1)
          Refresh Encryption Key (Octet 17 - Bit 2)
          Sniff Subrating (Octet 17 - Bit 4)
          Read Simple Pairing Mode (Octet 17 - Bit 5)
          Write Simple Pairing Mode (Octet 17 - Bit 6)
          Read Local OOB Data (Octet 17 - Bit 7)
          Read Inquiry Response TX Power Level (Octet 18 - Bit 0)
          Write Inquiry Transmit Power Level (Octet 18 - Bit 1)
          Read Default Erroneous Data Reporting (Octet 18 - Bit 2)
          Write Default Erroneous Data Reporting (Octet 18 - Bit 3)
          IO Capability Request Reply (Octet 18 - Bit 7)
          User Confirmation Request Reply (Octet 19 - Bit 0)
          User Confirmation Request Neg Reply (Octet 19 - Bit 1)
          User Passkey Request Reply (Octet 19 - Bit 2)
          User Passkey Request Negative Reply (Octet 19 - Bit 3)
          Remote OOB Data Request Reply (Octet 19 - Bit 4)
          Write Simple Pairing Debug Mode (Octet 19 - Bit 5)
          Enhanced Flush (Octet 19 - Bit 6)
          Remote OOB Data Request Neg Reply (Octet 19 - Bit 7)
          Send Keypress Notification (Octet 20 - Bit 2)
          IO Capability Request Negative Reply (Octet 20 - Bit 3)
          Read Enhanced Transmit Power Level (Octet 24 - Bit 0)
          Read LE Host Supported (Octet 24 - Bit 5)
          Write LE Host Supported (Octet 24 - Bit 6)
          LE Set Event Mask (Octet 25 - Bit 0)
          LE Read Buffer Size (Octet 25 - Bit 1)
          LE Read Local Supported Features (Octet 25 - Bit 2)
          LE Set Random Address (Octet 25 - Bit 4)
          LE Set Advertising Parameters (Octet 25 - Bit 5)
          LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
          LE Set Advertising Data (Octet 25 - Bit 7)
          LE Set Scan Response Data (Octet 26 - Bit 0)
          LE Set Advertise Enable (Octet 26 - Bit 1)
          LE Set Scan Parameters (Octet 26 - Bit 2)
          LE Set Scan Enable (Octet 26 - Bit 3)
          LE Create Connection (Octet 26 - Bit 4)
          LE Create Connection Cancel (Octet 26 - Bit 5)
          LE Read White List Size (Octet 26 - Bit 6)
          LE Clear White List (Octet 26 - Bit 7)
          LE Add Device To White List (Octet 27 - Bit 0)
          LE Remove Device From White List (Octet 27 - Bit 1)
          LE Connection Update (Octet 27 - Bit 2)
          LE Set Host Channel Classification (Octet 27 - Bit 3)
          LE Read Channel Map (Octet 27 - Bit 4)
          LE Read Remote Used Features (Octet 27 - Bit 5)
          LE Encrypt (Octet 27 - Bit 6)
          LE Rand (Octet 27 - Bit 7)
          LE Start Encryption (Octet 28 - Bit 0)
          LE Long Term Key Request Reply (Octet 28 - Bit 1)
          LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
          LE Read Supported States (Octet 28 - Bit 3)
          LE Receiver Test (Octet 28 - Bit 4)
          LE Transmitter Test (Octet 28 - Bit 5)
          LE Test End (Octet 28 - Bit 6)
          Enhanced Setup Synchronous Connection (Octet 29 - Bit 3)
          Enhanced Accept Synchronous Connection Request (Octet 29 - Bit 4)
          Read Local Supported Codecs (Octet 29 - Bit 5)
< HCI Command: Write Extended Inquiry Response (0x03|0x0052) plen 241                                                                  [hci0] 8.959216
        FEC: Not required (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.961095
      Write Extended Inquiry Response (0x03|0x0052) ncmd 1
        Status: Success (0x00)
< HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1                                                                                 [hci0] 8.961104
        Mode: Inquiry Result with RSSI or Extended Inquiry Result (0x02)
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.961330
      Write Inquiry Mode (0x03|0x0045) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Inquiry Response TX Power Level (0x03|0x0058) plen 0                                                               [hci0] 8.961340
> HCI Event: Command Complete (0x0e) plen 5                                                                                            [hci0] 8.961580
      Read Inquiry Response TX Power Level (0x03|0x0058) ncmd 1
        Status: Success (0x00)
        TX power: 6 dBm
< HCI Command: Read Local Extended Features (0x04|0x0004) plen 1                                                                       [hci0] 8.961591
        Page: 1
> HCI Event: Command Complete (0x0e) plen 14                                                                                           [hci0] 8.961830
      Read Local Extended Features (0x04|0x0004) ncmd 1
        Status: Success (0x00)
        Page: 1/1
        Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Set Event Mask (0x03|0x0001) plen 8                                                                                     [hci0] 8.961853
        Mask: 0x3dbff807fffbffff
          Inquiry Complete
          Inquiry Result
          Connection Complete
          Connection Request
          Disconnection Complete
          Authentication Complete
          Remote Name Request Complete
          Encryption Change
          Change Connection Link Key Complete
          Master Link Key Complete
          Read Remote Supported Features Complete
          Read Remote Version Information Complete
          QoS Setup Complete
          Command Complete
          Command Status
          Hardware Error
          Flush Occurred
          Role Change
          Mode Change
          Return Link Keys
          PIN Code Request
          Link Key Request
          Link Key Notification
          Loopback Command
          Data Buffer Overflow
          Max Slots Change
          Read Clock Offset Complete
          Connection Packet Type Changed
          QoS Violation
          Page Scan Mode Change
          Page Scan Repetition Mode Change
          Flow Specification Complete
          Inquiry Result with RSSI
          Read Remote Extended Features Complete
          Synchronous Connection Complete
          Synchronous Connection Changed
          Sniff Subrating
          Extended Inquiry Result
          Encryption Key Refresh Complete
          IO Capability Request
          IO Capability Request Reply
          User Confirmation Request
          User Passkey Request
          Remote OOB Data Request
          Simple Pairing Complete
          Link Supervision Timeout Changed
          Enhanced Flush Complete
          User Passkey Notification
          Keypress Notification
          Remote Host Supported Features Notification
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.962081
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Stored Link Key (0x03|0x000d) plen 7                                                                               [hci0] 8.962091
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
        Read all: 0x01
> HCI Event: Command Complete (0x0e) plen 8                                                                                            [hci0] 8.962455
      Read Stored Link Key (0x03|0x000d) ncmd 1
        Status: Success (0x00)
        Max num keys: 0
        Num keys: 0
< HCI Command: Write Default Link Policy Settings (0x02|0x000f) plen 2                                                                 [hci0] 8.962465
        Link policy: 0x000f
          Enable Role Switch
          Enable Hold Mode
          Enable Sniff Mode
          Enable Park State
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.962705
      Write Default Link Policy Settings (0x02|0x000f) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0                                                                            [hci0] 8.962714
> HCI Event: Command Complete (0x0e) plen 8                                                                                            [hci0] 8.962955
      Read Page Scan Activity (0x03|0x001b) ncmd 1
        Status: Success (0x00)
        Interval: 1280.000 msec (0x0800)
        Window: 11.250 msec (0x0012)
< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0                                                                                [hci0] 8.962964
> HCI Event: Command Complete (0x0e) plen 5                                                                                            [hci0] 8.963205
      Read Page Scan Type (0x03|0x0046) ncmd 1
        Status: Success (0x00)
        Type: Standard Scan (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8                                                                                  [hci0] 8.963214
        Mask: 0x000000000000001f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
> HCI Event: Command Complete (0x0e) plen 4                                                                                            [hci0] 8.963580
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Advertising Channel TX Power (0x08|0x0007) plen 0                                                               [hci0] 8.963589
> HCI Event: Command Complete (0x0e) plen 5                                                                                            [hci0] 8.963831
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 5 dBm
< HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7                                                                             [hci0] 8.963870
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
        Delete all: 0x01
> HCI Event: Command Complete (0x0e) plen 6                                                                                            [hci0] 8.964085
      Delete Stored Link Key (0x03|0x0012) ncmd 1
        Status: Success (0x00)
        Num keys: 0
< HCI Command: Read Local Supported Codecs (0x04|0x000b) plen 0                                                                        [hci0] 8.964102
> HCI Event: Command Status (0x0f) plen 4                                                                                              [hci0] 8.964333
      Read Local Supported Codecs (0x04|0x000b) ncmd 1
        Status: Unknown HCI Command (0x01)

Hope it helps to identify the problem.

tobiasBora commented 8 years ago

Well for me the error isn't exactly the same:

$ hciconfig hci0 -a
Can't get device info: No such device

And the dmesg spam me (every second) with:

[79900.784465] usb 1-4: new high-speed USB device number 118 using xhci_hcd
[79900.913451] usb 1-4: New USB device found, idVendor=0e8d, idProduct=763f
[79900.913457] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[79900.913460] usb 1-4: Product: BT
[79900.913463] usb 1-4: Manufacturer: MediaTek
[79900.913466] usb 1-4: SerialNumber: 1.0
[79900.914034] chip id = 76300002
[79900.914185] Firmware file "mt76x0.bin" Found 
[79900.914187] bulk_tx_ep = 2
[79900.914386] mtk_loader: done
[79900.914389] setup_packet in urb: size=8
[79900.914391] 20 00 00 00 00 00 34 00 
transfer_buffer in urb: size=52
[79900.914398] c3 fc 31 01 00 00 00 00 00 00 00 00 ff fc 03 00 00 00 00 80 8d 0e 3f 76 05 b8 88 00 00 00 00 00 00 74 d2 2f 01 88 ff ff 5e 00 00 00 00 00 00 00 00 00 00 00 
submit urb:
[79900.914430] usb_send_vendor_hci_cmd: return=0
[79900.914432] mtk_bt_loader_probe: ret = 0
[79900.914531] usb_vendor_hci_cmd_complete 
[79900.914721] usb 1-4: USB disconnect, device number 118
[79900.914797] mtk_bt_loader_disconnect
sonvirgo commented 8 years ago

any news on this? for me # hciconfig hci0 up Can't init device hci0: Invalid request code (56) and

`# hcidump HCI sniffer - Bluetooth packet analyzer ver 5.35 device: hci0 snap_len: 1500 filter: 0xffffffffffffffff < HCI Command: Reset (0x03|0x0003) plen 0

HCI Event: Command Complete (0x0e) plen 4 Reset (0x03|0x0003) ncmd 1 status 0x00 < HCI Command: Read Local Version Information (0x04|0x0001) plen 0 HCI Event: Command Complete (0x0e) plen 12 Read Local Version Information (0x04|0x0001) ncmd 1 status 0x00 HCI Version: 4.1 (0x7) HCI Revision: 0x73 LMP Version: 4.1 (0x7) LMP Subversion: 0x6109 Manufacturer: Broadcom Corporation (15)`

tobiasBora commented 8 years ago

@sonvirgo : You should try to read this: https://github.com/neurobin/MT7630E/issues/6#issuecomment-196090923

sonvirgo commented 8 years ago

@tobiasBora you mean rebuild kernel? I can't afford it. Thank you any way.

tobiasBora commented 8 years ago

Well you build only a part of the kernel (it takes only a few seconds) and then replace only a single file. It's not that heavy.

Le 4 mai 2016 17:18:25 GMT+02:00, "おとめ座 ひなたぼっこ" notifications@github.com a écrit :

@tobiasBora you mean rebuild kernel? I can't afford it. Thank you any way.


You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/kuba-moo/mt7630e/issues/7#issuecomment-216898731

TobiasBora