nimble/controller: Fix LE Connection Update status code in slave role

LE Connection Update called on slave when both sides do not support
Connection Parameters Request procedure should return "command
disallowed" error code. The "unknown HCI command" suggests that this
command is not supported at all which is not correct.

X-Original-Commit: ca655b536be7178557f7925622fe6bc29ce4808d
This commit is contained in:
Andrzej Kaczmarek
2017-07-04 09:54:11 +02:00
parent abf66381a4
commit 6b3e53c552
+1 -1
View File
@@ -815,7 +815,7 @@ ble_ll_conn_hci_update(uint8_t *cmdbuf)
/* See if this feature is supported on both sides */
if ((connsm->common_features & BLE_LL_FEAT_CONN_PARM_REQ) == 0) {
if (connsm->conn_role == BLE_LL_CONN_ROLE_SLAVE) {
return BLE_ERR_UNKNOWN_HCI_CMD;
return BLE_ERR_CMD_DISALLOWED;
}
ctrl_proc = BLE_LL_CTRL_PROC_CONN_UPDATE;
} else {