This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 253f5901b nimble/host: Fix invalid response for mtu exchange request
253f5901b is described below
commit 253f5901b64cede3b0eef8f31345452f14f65f1c
Author: Piotr Narajowski <[email protected]>
AuthorDate: Thu Mar 7 14:24:31 2024 +0100
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);