From 307fdc657d8dcd40099c08a245067aa58ca76a3c Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 22 Sep 2024 15:52:44 +0200 Subject: [PATCH] connection: handle ACKs from empty packets correctly --- impl/src/layer2/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/impl/src/layer2/connection.c b/impl/src/layer2/connection.c index ab9d970..3464eed 100644 --- a/impl/src/layer2/connection.c +++ b/impl/src/layer2/connection.c @@ -114,6 +114,8 @@ result_t connection_handle_packet(connection_ctx_t *ctx, const uint8_t *buf, siz switch(header.msg_type) { case L2_MSG_TYPE_EMPTY: LOG(LVL_DEBUG, "Empty packet: accepted ACK for %u.", ctx->last_acked_seq); + // handle the acknowledgement internally + connection_handle_ack(ctx, header.rx_seq_nr); return OK; // do not ACK and call back case L2_MSG_TYPE_CONN_MGMT: