diff --git a/src/classic/goep_client.c b/src/classic/goep_client.c index 03f2f226f..20b140ffa 100644 --- a/src/classic/goep_client.c +++ b/src/classic/goep_client.c @@ -60,7 +60,7 @@ // goep_client.c // -// #define ENABLE_GOEP_L2CAP +#define ENABLE_GOEP_L2CAP typedef enum { GOEP_INIT, @@ -481,6 +481,11 @@ void goep_client_create_get_request(uint16_t goep_cid){ goep_client_packet_add_connection_id(goep_cid); } +void goep_client_create_abort_request(uint16_t goep_cid){ + goep_client_packet_init(goep_cid, OBEX_OPCODE_ABORT); + goep_client_packet_add_connection_id(goep_cid); +} + void goep_client_add_header_srm_enable(uint16_t goep_cid){ goep_client_t * context = goep_client; if (!context->l2cap_psm) return; diff --git a/src/classic/goep_client.h b/src/classic/goep_client.h index 30f80d9de..ec3eaed25 100644 --- a/src/classic/goep_client.h +++ b/src/classic/goep_client.h @@ -128,6 +128,12 @@ void goep_client_create_disconnect_request(uint16_t goep_cid); */ void goep_client_create_get_request(uint16_t goep_cid); +/** + * @brief Create Abort request + * @param gope_cid + */ +void goep_client_create_abort_request(uint16_t goep_cid); + /** * @brief Add SRM Enable * @param gope_cid