Skip to content

Commit 81d76fc

Browse files
[WIP] MTU handling eatt
Sample message
1 parent a220f66 commit 81d76fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

nimble/host/src/ble_att.c

+1
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ bool
639639
ble_eatt_supported_req(uint8_t opcode)
640640
{
641641
switch (opcode) {
642+
case BLE_ATT_OP_MTU_REQ:
642643
case BLE_ATT_OP_WRITE_CMD:
643644
case BLE_ATT_OP_FIND_INFO_REQ:
644645
case BLE_ATT_OP_FIND_TYPE_VALUE_REQ:

nimble/host/src/ble_eatt.c

+3
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ ble_eatt_l2cap_event_fn(struct ble_l2cap_event *event, void *arg)
269269
if (ble_eatt_supported_rsp(opcode)) {
270270
ble_npl_eventq_put(ble_hs_evq_get(), &eatt->wakeup_ev);
271271
} else if (!ble_eatt_supported_req(opcode)) {
272+
if (opcode == BLE_ATT_OP_MTU_REQ) {
273+
return BLE_HS_ENOTSUP;
274+
}
272275
/* If an ATT PDU is supported on any ATT bearer, then it shall be
273276
* supported on all supported ATT bearers with the following
274277
* exceptions:

0 commit comments

Comments
 (0)