1. 12 4月, 2013 2 次提交
    • C
      Bluetooth: Reject SCO when hci connection timeouts · 93796fa6
      Claudio Takahasi 提交于
      This patch sends Reject Synchronous Connection Request Command when
      hci_conn_timeout is triggered, and the SCO connection is in BT_CONNECT2
      state. It prevents inconsistency if the remote host doesn't implement
      properly the timeout for the connection request, and it removes the
      connection reference left when the socket is closed for incoming SCO
      connections.
      
      [ 2650.129080] sco_sock_release: sock ffff8801ca417400, sk ffff88020c408800
      [ 2650.129092] sco_sock_clear_timer: sock ffff88020c408800 state 6
      [ 2650.129101] __sco_sock_close: sk ffff88020c408800 state 6 socket
      	ffff8801ca417400
      [ 2650.129108] sco_chan_del: sk ffff88020c408800, conn ffff8801c650ea20,
      	err 104
      [ 2650.129114] hci_conn_put: hcon ffff88020c40a800 orig refcnt 1
      [ 2650.129128] sco_sock_kill: sk ffff88020c408800 state 9
      [ 2650.129135] sco_sock_destruct: sk ffff88020c408800
      [ 2650.138468] hci_conn_timeout: hcon ffff88020c40a800 state BT_CONNECT2
      Signed-off-by: NClaudio Takahasi <claudio.takahasi@openbossa.org>
      Signed-off-by: NVinicius Costa Gomes <vinicius.gomes@openbossa.org>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      93796fa6
    • D
      Bluetooth: rename hci_conn_put to hci_conn_drop · 76a68ba0
      David Herrmann 提交于
      We use _get() and _put() for device ref-counting in the kernel. However,
      hci_conn_put() is _not_ used for ref-counting, hence, rename it to
      hci_conn_drop() so we can later fix ref-counting and introduce
      hci_conn_put().
      
      hci_conn_hold() and hci_conn_put() are currently used to manage how long a
      connection should be held alive. When the last user drops the connection,
      we spawn a delayed work that performs the disconnect. Obviously, this has
      nothing to do with ref-counting for the _object_ but rather for the
      keep-alive of the connection.
      
      But we really _need_ proper ref-counting for the _object_ to allow
      connection-users like rfcomm-tty, HIDP or others.
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      76a68ba0
  2. 08 3月, 2013 1 次提交
  3. 01 2月, 2013 1 次提交
  4. 02 11月, 2012 2 次提交
  5. 24 10月, 2012 1 次提交
  6. 11 10月, 2012 2 次提交
  7. 28 9月, 2012 1 次提交
  8. 09 9月, 2012 1 次提交
  9. 27 8月, 2012 1 次提交
  10. 22 8月, 2012 1 次提交
  11. 15 8月, 2012 7 次提交
  12. 30 6月, 2012 2 次提交
  13. 05 6月, 2012 9 次提交
  14. 09 5月, 2012 5 次提交
  15. 29 3月, 2012 1 次提交
  16. 23 2月, 2012 1 次提交
  17. 20 2月, 2012 1 次提交
  18. 19 2月, 2012 1 次提交