Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions nimble/host/src/ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6347,6 +6347,19 @@ ble_gap_update_params(uint16_t conn_handle,
rc = 0;
} else {
rc = ble_gap_update_tx(conn_handle, params);

/*
* If the controller rejects the LL update with "Unsupported Remote
* Feature" and we are the slave, fall back to L2CAP signaling. This
* can happen when the peer advertises CONN_PARAM_REQUEST support at
* the host level but the local controller does not support the 4.1 LL
* Connection Parameters Request procedure.
*/
if (rc == BLE_HS_HCI_ERR(BLE_ERR_UNSUPP_REM_FEATURE) &&
!(conn->bhc_flags & BLE_HS_CONN_F_MASTER)) {
l2cap_update = 1;
rc = 0;
}
}

done:
Expand Down
Loading