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 <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2019-11-18 14:28:18 +01:00 committed by Johan Hedberg
commit 113b80ff0d

View file

@ -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,