Skip to content

Commit 113b80f

Browse files
joerchanjhedberg
authored andcommitted
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 <[email protected]>
1 parent dfe57ca commit 113b80f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ int bt_conn_le_conn_update(struct bt_conn *conn,
22792279
conn_update->conn_latency = sys_cpu_to_le16(param->latency);
22802280
conn_update->supervision_timeout = sys_cpu_to_le16(param->timeout);
22812281

2282-
return bt_hci_cmd_send(BT_HCI_OP_LE_CONN_UPDATE, buf);
2282+
return bt_hci_cmd_send_sync(BT_HCI_OP_LE_CONN_UPDATE, buf, NULL);
22832283
}
22842284

22852285
struct net_buf *bt_conn_create_pdu_timeout(struct net_buf_pool *pool,

0 commit comments

Comments
 (0)