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 c872ca824 Revert "nimble/eatt: Add manual EATT connection control to 
BTP tester"
c872ca824 is described below

commit c872ca8245aa17e042959723322102901cad1af8
Author: Szymon Janc <[email protected]>
AuthorDate: Tue Feb 17 09:17:20 2026 +0100

    Revert "nimble/eatt: Add manual EATT connection control to BTP tester"
    
    This depends on not merged feature and thus is causing build errors.
    This reverts commit 863b91cacfcee7cd1b66e551cec2507918691deb.
---
 apps/bttester/src/btp/btp_gatt.h |  6 ------
 apps/bttester/src/btp_gatt.c     | 22 ----------------------
 2 files changed, 28 deletions(-)

diff --git a/apps/bttester/src/btp/btp_gatt.h b/apps/bttester/src/btp/btp_gatt.h
index 7e52efd46..6c57ade09 100644
--- a/apps/bttester/src/btp/btp_gatt.h
+++ b/apps/bttester/src/btp/btp_gatt.h
@@ -321,12 +321,6 @@ struct btp_gatt_notify_mult_val_cmd {
     uint16_t handles[0];
 } __packed;
 
-#define BTP_GATT_EATT_CONNECT 0x1f
-struct btp_gatt_eatt_conn_cmd {
-    ble_addr_t address;
-    uint8_t num_channels;
-} __packed;
-
 /* GATT events */
 #define BTP_GATT_EV_NOTIFICATION        0x80
 struct btp_gatt_notification_ev {
diff --git a/apps/bttester/src/btp_gatt.c b/apps/bttester/src/btp_gatt.c
index 2886cc846..17c083bf3 100644
--- a/apps/bttester/src/btp_gatt.c
+++ b/apps/bttester/src/btp_gatt.c
@@ -1931,23 +1931,6 @@ notify_mult(const void *cmd, uint16_t cmd_len,
     return BTP_STATUS_SUCCESS;
 }
 
-static uint8_t
-eatt_conn(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len)
-{
-    uint16_t conn_handle;
-    const struct btp_gatt_eatt_conn_cmd *cp = cmd;
-    int rc;
-
-    ble_gap_conn_find_handle_by_addr(&cp->address, &conn_handle);
-
-    rc = ble_eatt_connect(conn_handle, cp->num_channels);
-    if (rc == 0 || rc == BLE_HS_EALREADY) {
-        return BTP_STATUS_SUCCESS;
-    }
-
-    return BTP_STATUS_FAILED;
-}
-
 static uint8_t
 change_database(const void *cmd, uint16_t cmd_len,
                 void *rsp, uint16_t *rsp_len)
@@ -2105,11 +2088,6 @@ static const struct btp_handler handlers[] = {
         .expect_len = BTP_HANDLER_LENGTH_VARIABLE,
         .func = notify_mult,
     },
-    {
-        .opcode = BTP_GATT_EATT_CONNECT,
-        .expect_len = sizeof(struct btp_gatt_eatt_conn_cmd),
-        .func = eatt_conn,
-    },
 };
 
 int

Reply via email to