Bluetooth: BR/EDR: Update of hci_disconn_complete
As a cleanup of just made disconnection don't touch LE specific actions. Change-Id: I0c7c42f47ac8f6683380124df571fa2b2afbf526 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
parent
853ab787e7
commit
f0572cfb61
1 changed files with 5 additions and 0 deletions
|
@ -448,6 +448,11 @@ static void hci_disconn_complete(struct net_buf *buf)
|
|||
bt_conn_set_state(conn, BT_CONN_DISCONNECTED);
|
||||
conn->handle = 0;
|
||||
|
||||
if (conn->type != BT_CONN_TYPE_LE) {
|
||||
bt_conn_unref(conn);
|
||||
return;
|
||||
}
|
||||
|
||||
if (atomic_test_bit(conn->flags, BT_CONN_AUTO_CONNECT)) {
|
||||
bt_conn_set_state(conn, BT_CONN_CONNECT_SCAN);
|
||||
bt_le_scan_update(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue