1. 15 10月, 2013 19 次提交
  2. 14 10月, 2013 20 次提交
  3. 13 10月, 2013 1 次提交
    • M
      Bluetooth: Return the correct address type for L2CAP sockets · 4f1654e0
      Marcel Holtmann 提交于
      The L2CAP sockets can use BR/EDR public, LE public and LE random
      addresses for various combinations of source and destination
      devices. So make sure that getsockname(), getpeername() and
      accept() return the correct address type.
      
      For this the address type of the source and destination is stored
      with the L2CAP channel information. The stored address type is
      not the one specific for the HCI protocol. It is the address
      type used for the L2CAP sockets and the management interface.
      
      The underlying HCI connections store the HCI address type. If
      needed, it gets converted to the socket address type.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      4f1654e0