Bluetooth: Host: Use a valid disconnect reason
"Unspecified Error" is not a disconnect reason allowed by spec. Fixes #56989 Signed-off-by: Herman Berget <herman.berget@nordicsemi.no>
This commit is contained in:
parent
fc0a0c5bfb
commit
5893606187
|
@ -1330,7 +1330,7 @@ void bt_hci_le_enh_conn_complete(struct bt_hci_evt_le_enh_conn_complete *evt)
|
||||||
|
|
||||||
if (!conn) {
|
if (!conn) {
|
||||||
LOG_ERR("No pending conn for peer %s", bt_addr_le_str(&evt->peer_addr));
|
LOG_ERR("No pending conn for peer %s", bt_addr_le_str(&evt->peer_addr));
|
||||||
bt_hci_disconnect(handle, BT_HCI_ERR_UNSPECIFIED);
|
bt_hci_disconnect(handle, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue