From 253f5901b64cede3b0eef8f31345452f14f65f1c Mon Sep 17 00:00:00 2001 From: Piotr Narajowski Date: Thu, 7 Mar 2024 14:24:31 +0100 Subject: [PATCH] nimble/host: Fix invalid response for mtu exchange request This commit applies valid response (Request Not Supported) when mtu exchange is requested over EATT. --- nimble/host/src/ble_att_svr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_att_svr.c b/nimble/host/src/ble_att_svr.c index aad64f687..145318f09 100644 --- a/nimble/host/src/ble_att_svr.c +++ b/nimble/host/src/ble_att_svr.c @@ -727,7 +727,7 @@ ble_att_svr_rx_mtu(uint16_t conn_handle, uint16_t cid, struct os_mbuf **rxom) if (cid != BLE_L2CAP_CID_ATT) { /*TODO */ - return BLE_ATT_ERR_INVALID_PDU; + return BLE_HS_ENOTSUP; } rc = ble_att_svr_pullup_req_base(rxom, sizeof(*cmd), &att_err);