• M
    [Bluetooth] Use a more unique bus name for connections · 7d0db0a3
    Marcel Holtmann 提交于
    When attaching Bluetooth low-level connections to the bus, the bus name
    is constructed from the remote address since at that time the connection
    handle is not assigned yet. This has worked so far, but also caused a
    lot of troubles. It is better to postpone the creation of the sysfs
    entry to the time when the connection actually has been established
    and then use its connection handle as unique identifier.
    
    This also fixes the case where two different adapters try to connect
    to the same remote device.
    Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
    7d0db0a3
hci_conn.c 14.7 KB