From 113b80ff0dbf712559cd600f48fb97fb9d06ec94 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Mon, 18 Nov 2019 14:28:18 +0100 Subject: [PATCH] Bluetooth: Host: Fix silent LE conn param update command failure Fix command status for LE Command Param Update HCI command silently dropped by the host without notifying the application that this command has failed. This happens because the host does not wait for the command status event to check the status code returned. Signed-off-by: Joakim Andersson --- subsys/bluetooth/host/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/conn.c b/subsys/bluetooth/host/conn.c index b1d1857d3b1..556bc4b7cc9 100644 --- a/subsys/bluetooth/host/conn.c +++ b/subsys/bluetooth/host/conn.c @@ -2279,7 +2279,7 @@ int bt_conn_le_conn_update(struct bt_conn *conn, conn_update->conn_latency = sys_cpu_to_le16(param->latency); conn_update->supervision_timeout = sys_cpu_to_le16(param->timeout); - return bt_hci_cmd_send(BT_HCI_OP_LE_CONN_UPDATE, buf); + return bt_hci_cmd_send_sync(BT_HCI_OP_LE_CONN_UPDATE, buf, NULL); } struct net_buf *bt_conn_create_pdu_timeout(struct net_buf_pool *pool,