Skip to content

Commit

Permalink
[WIP] MTU handling eatt
Browse files Browse the repository at this point in the history
Sample message
  • Loading branch information
szymon-czapracki committed Nov 28, 2024
1 parent a220f66 commit 81d76fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions nimble/host/src/ble_att.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ bool
ble_eatt_supported_req(uint8_t opcode)
{
switch (opcode) {
case BLE_ATT_OP_MTU_REQ:
case BLE_ATT_OP_WRITE_CMD:
case BLE_ATT_OP_FIND_INFO_REQ:
case BLE_ATT_OP_FIND_TYPE_VALUE_REQ:
Expand Down
3 changes: 3 additions & 0 deletions nimble/host/src/ble_eatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ ble_eatt_l2cap_event_fn(struct ble_l2cap_event *event, void *arg)
if (ble_eatt_supported_rsp(opcode)) {
ble_npl_eventq_put(ble_hs_evq_get(), &eatt->wakeup_ev);
} else if (!ble_eatt_supported_req(opcode)) {
if (opcode == BLE_ATT_OP_MTU_REQ) {
return BLE_HS_ENOTSUP;
}
/* If an ATT PDU is supported on any ATT bearer, then it shall be
* supported on all supported ATT bearers with the following
* exceptions:
Expand Down

0 comments on commit 81d76fc

Please sign in to comment.