Skip to content

Commit 14fba1d

Browse files
nimble/eatt: Handle MTU request over enhanced bearer
Handle ATT MTU request over enhanced bearer. This request shall return Request Not Supported error (0x06) Now all unknown opcodes will force nimble eatt to return unsupported error.
1 parent 61a947a commit 14fba1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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

+1-2
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ ble_eatt_l2cap_event_fn(struct ble_l2cap_event *event, void *arg)
277277
* • The Signed Write Without Response sub-procedure shall only be
278278
* supported on the LE Fixed Channel Unenhanced ATT bearer.
279279
*/
280-
ble_l2cap_disconnect(eatt->chan);
281-
return BLE_HS_EREJECT;
280+
return BLE_HS_ENOTSUP;
282281
}
283282

284283
assert (!ble_gap_conn_find(event->receive.conn_handle, &desc));

0 commit comments

Comments
 (0)