1. 14 6月, 2011 1 次提交
  2. 09 6月, 2011 3 次提交
    • J
      Bluetooth: Add BT_POWER L2CAP socket option. · 14b12d0b
      Jaikumar Ganesh 提交于
      Add BT_POWER socket option used to control the power
      characteristics of the underlying ACL link. When the remote end
      has put the link in sniff mode and the host stack wants to send
      data we need need to explicitly exit sniff mode to work well with
      certain devices (For example, A2DP on Plantronics Voyager 855).
      However, this causes problems with HID devices.
      
      Hence, moving into active mode when sending data, irrespective
      of who set the sniff mode has been made as a socket option. By
      default, we will move into active mode. HID devices can set the
      L2CAP socket option to prevent this from happening.
      
      Currently, this has been implemented for L2CAP sockets. This has been
      tested with incoming and outgoing L2CAP sockets for HID and A2DP.
      
      Based on discussions on linux-bluetooth and patches submitted by
      Andrei Emeltchenko.
      Signed-off-by: NJaikumar Ganesh <jaikumar@google.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      14b12d0b
    • A
      Bluetooth: Advertising entries lifetime · 35815085
      Andre Guedes 提交于
      This patch adds a timer to clear 'adv_entries' after three minutes.
      
      After some amount of time, the advertising entries cached during
      the last LE scan should be considered expired and they should be
      removed from the advertising cache.
      
      It was chosen a three minutes timeout as an initial attempt. This
      value might change in future.
      Signed-off-by: NAndre Guedes <andre.guedes@openbossa.org>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      35815085
    • A
      Bluetooth: LE advertising cache · 76c8686f
      Andre Guedes 提交于
      This patch implements the LE advertising cache. It stores sensitive
      information (bdaddr and bdaddr_type so far) gathered from LE
      advertising report events.
      
      Only advertising entries from connectables devices are added to the
      cache.
      Signed-off-by: NAndre Guedes <andre.guedes@openbossa.org>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      76c8686f
  3. 29 4月, 2011 6 次提交
  4. 19 4月, 2011 1 次提交
  5. 05 4月, 2011 1 次提交
  6. 01 4月, 2011 4 次提交
  7. 31 3月, 2011 1 次提交
  8. 25 3月, 2011 2 次提交
    • T
      Bluetooth: Fix warning with hci_cmd_timer · b77dcf84
      Thomas Gleixner 提交于
      After we made debugobjects working again, we got the following:
      
      WARNING: at lib/debugobjects.c:262 debug_print_object+0x8e/0xb0()
      Hardware name: System Product Name
      ODEBUG: free active (active state 0) object type: timer_list hint: hci_cmd_timer+0x0/0x60
      Pid: 2125, comm: dmsetup Tainted: G        W   2.6.38-06707-gc62b3898 #110375
      Call Trace:
       [<ffffffff8104700a>] warn_slowpath_common+0x7a/0xb0
       [<ffffffff810470b6>] warn_slowpath_fmt+0x46/0x50
       [<ffffffff812d3a5e>] debug_print_object+0x8e/0xb0
       [<ffffffff81bd8810>] ? hci_cmd_timer+0x0/0x60
       [<ffffffff812d4685>] debug_check_no_obj_freed+0x125/0x230
       [<ffffffff810f1063>] ? check_object+0xb3/0x2b0
       [<ffffffff810f3630>] kfree+0x150/0x190
       [<ffffffff81be4d06>] ? bt_host_release+0x16/0x20
       [<ffffffff81be4d06>] bt_host_release+0x16/0x20
       [<ffffffff813a1907>] device_release+0x27/0xa0
       [<ffffffff812c519c>] kobject_release+0x4c/0xa0
       [<ffffffff812c5150>] ? kobject_release+0x0/0xa0
       [<ffffffff812c61f6>] kref_put+0x36/0x70
       [<ffffffff812c4d37>] kobject_put+0x27/0x60
       [<ffffffff813a21f7>] put_device+0x17/0x20
       [<ffffffff81bda4f9>] hci_free_dev+0x29/0x30
       [<ffffffff81928be6>] vhci_release+0x36/0x70
       [<ffffffff810fb366>] fput+0xd6/0x1f0
       [<ffffffff810f8fe6>] filp_close+0x66/0x90
       [<ffffffff810f90a9>] sys_close+0x99/0xf0
       [<ffffffff81d4c96b>] system_call_fastpath+0x16/0x1b
      
      That timer was introduced with commit 6bd32326(Bluetooth: Use
      proper timer for hci command timout)
      
      Timer seems to be running when the thing is closed. Removing the timer
      unconditionally fixes the problem. And yes, it needs to be fixed
      before the HCI_UP check.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Tested-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      b77dcf84
    • G
      Bluetooth: Fix HCI_RESET command synchronization · f630cf0d
      Gustavo F. Padovan 提交于
      We can't send new commands before a cmd_complete for the HCI_RESET command
      shows up.
      Reported-by: NMikko Vinni <mmvinni@yahoo.com>
      Reported-by: NJustin P. Mattock <justinmattock@gmail.com>
      Reported-by: NEd Tomlinson <edt@aei.ca>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      Tested-by: NJustin P. Mattock <justinmattock@gmail.com>
      Tested-by: NMikko Vinni <mmvinni@yahoo.com>
      Tested-by: NEd Tomlinson <edt@aei.ca>
      f630cf0d
  9. 18 2月, 2011 1 次提交
  10. 17 2月, 2011 4 次提交
  11. 08 2月, 2011 12 次提交
  12. 20 1月, 2011 1 次提交
  13. 23 12月, 2010 2 次提交
  14. 02 12月, 2010 1 次提交