1. 19 12月, 2011 12 次提交
  2. 17 12月, 2011 1 次提交
  3. 02 12月, 2011 2 次提交
  4. 22 11月, 2011 2 次提交
  5. 17 11月, 2011 2 次提交
  6. 09 11月, 2011 4 次提交
  7. 08 11月, 2011 12 次提交
  8. 01 11月, 2011 1 次提交
    • S
      Bluetooth: Increase HCI reset timeout in hci_dev_do_close · e1b6eb3c
      Szymon Janc 提交于
      I've noticed that my CSR usb dongle was not working if it was plugged in when
      PC was booting. It looks like I get two HCI reset command complete events (see
      hcidump logs below).
      The root cause is reset called from off_timer. Timeout for this reset to
      complete is set to 250ms and my bt dongle requires more time for replying with
      command complete event. After that, chip seems to reply with reset command
      complete event for next non-reset command.
      
      Attached patch increase mentioned timeout to HCI_INIT_TIMEOUT, this value is
      already used for timeouting hci_reset_req in hci_dev_reset().
      
      This might also be related to BT not working after suspend that was reported
      here some time ago.
      
      Hcidump log:
      
      2011-09-12 23:13:27.379465 < HCI Command: Reset (0x03|0x0003) plen 0
      2011-09-12 23:13:27.380797 > HCI Event: Command Complete (0x0e) plen 4
          Reset (0x03|0x0003) ncmd 1
          status 0x00
      2011-09-12 23:13:27.380859 < HCI Command: Read Local Supported Features (0x04|0x000
      3) plen 0
      2011-09-12 23:13:27.760789 > HCI Event: Command Complete (0x0e) plen 4
          Reset (0x03|0x0003) ncmd 1
          status 0x00
      2011-09-12 23:13:27.760831 < HCI Command: Read Local Version Information (0x04|0x00
      01) plen 0
      2011-09-12 23:13:27.764780 > HCI Event: Command Complete (0x0e) plen 12
          Read Local Version Information (0x04|0x0001) ncmd 1
          status 0x00
          HCI Version: 1.1 (0x1) HCI Revision: 0x36f
          LMP Version: 1.1 (0x1) LMP Subversion: 0x36f
          Manufacturer: Cambridge Silicon Radio (10)
      Signed-off-by: NSzymon Janc <szymon@janc.net.pl>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      e1b6eb3c
  9. 15 10月, 2011 3 次提交
  10. 21 9月, 2011 1 次提交
    • A
      Bluetooth: Add mgmt events for blacklisting · 5e762444
      Antti Julku 提交于
      Add management interface events for blocking/unblocking a device.
      Sender of the block device command gets cmd complete and other
      mgmt sockets get the event. Event is also sent to mgmt sockets when
      blocking is done with ioctl, e.g when blocking a device with
      hciconfig. This makes it possible for bluetoothd to track status
      of blocked devices when a third party block or unblocks a device.
      
      Event sending is handled in mgmt_device_blocked function which gets
      called from hci_blacklist_add in hci_core.c. A pending command is
      added in mgmt_block_device, so that it can found when sending the
      event - the event is not sent to the socket from which the pending
      command came. Locks were moved out from hci_core.c to hci_sock.c
      and mgmt.c, because locking is needed also for mgmt_pending_add in
      mgmt.c.
      Signed-off-by: NAntti Julku <antti.julku@nokia.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      5e762444