Skip to content

Commit c872ca8

Browse files
committed
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 863b91c.
1 parent a212222 commit c872ca8

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

apps/bttester/src/btp/btp_gatt.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,6 @@ struct btp_gatt_notify_mult_val_cmd {
321321
uint16_t handles[0];
322322
} __packed;
323323

324-
#define BTP_GATT_EATT_CONNECT 0x1f
325-
struct btp_gatt_eatt_conn_cmd {
326-
ble_addr_t address;
327-
uint8_t num_channels;
328-
} __packed;
329-
330324
/* GATT events */
331325
#define BTP_GATT_EV_NOTIFICATION 0x80
332326
struct btp_gatt_notification_ev {

apps/bttester/src/btp_gatt.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,23 +1931,6 @@ notify_mult(const void *cmd, uint16_t cmd_len,
19311931
return BTP_STATUS_SUCCESS;
19321932
}
19331933

1934-
static uint8_t
1935-
eatt_conn(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len)
1936-
{
1937-
uint16_t conn_handle;
1938-
const struct btp_gatt_eatt_conn_cmd *cp = cmd;
1939-
int rc;
1940-
1941-
ble_gap_conn_find_handle_by_addr(&cp->address, &conn_handle);
1942-
1943-
rc = ble_eatt_connect(conn_handle, cp->num_channels);
1944-
if (rc == 0 || rc == BLE_HS_EALREADY) {
1945-
return BTP_STATUS_SUCCESS;
1946-
}
1947-
1948-
return BTP_STATUS_FAILED;
1949-
}
1950-
19511934
static uint8_t
19521935
change_database(const void *cmd, uint16_t cmd_len,
19531936
void *rsp, uint16_t *rsp_len)
@@ -2105,11 +2088,6 @@ static const struct btp_handler handlers[] = {
21052088
.expect_len = BTP_HANDLER_LENGTH_VARIABLE,
21062089
.func = notify_mult,
21072090
},
2108-
{
2109-
.opcode = BTP_GATT_EATT_CONNECT,
2110-
.expect_len = sizeof(struct btp_gatt_eatt_conn_cmd),
2111-
.func = eatt_conn,
2112-
},
21132091
};
21142092

21152093
int

0 commit comments

Comments
 (0)