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:
parent
dfe57ca9e1
commit
113b80ff0d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue