• Pauli Virtanen's avatar
    Bluetooth: hci_conn: Fix CIS connection dst_type handling · b36a234d
    Pauli Virtanen authored
    hci_connect_cis and iso_connect_cis call hci_bind_cis inconsistently
    with dst_type being either ISO socket address type or the HCI type, but
    these values cannot be mixed like this. Fix this by using only the HCI
    type.
    
    CIS connection dst_type was also not initialized in hci_bind_cis, even
    though it is used in hci_conn_hash_lookup_cis to find existing
    connections.  Set the value in hci_bind_cis, so that existing CIS
    connections are found e.g. when doing deferred socket connections, also
    when dst_type is not 0 (ADDR_LE_DEV_PUBLIC).
    
    Fixes: 26afbd82 ("Bluetooth: Add initial implementation of CIS connections")
    Signed-off-by: default avatarPauli Virtanen <pav@iki.fi>
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    b36a234d
hci_conn.c 69.1 KB