mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-11 06:50:34 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user