From 0918f7ab4910fff8c1d9c1667d6b5a229c9a57d1 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 15 Jul 2024 13:07:57 +0900 Subject: [PATCH] Fix the gatt client wrong mtu cb unset issue Change-Id: I16f6d1d6b70053005e93a5e9852e966f5a359b14 Signed-off-by: Wootak Jung --- src/bluetooth-gatt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index 4330f75..4ce8c32 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -5551,8 +5551,8 @@ int bt_gatt_client_unset_att_mtu_changed_cb(bt_gatt_client_h client) BT_CHECK_INPUT_PARAMETER(client); BT_INFO("MTU Changed callback unregistered [%s]", client_s->remote_address); /* LCOV_EXCL_START */ - client_s->service_changed_cb = NULL; - client_s->service_changed_user_data = NULL; + client_s->att_mtu_changed_cb = NULL; + client_s->att_mtu_changed_user_data = NULL; return BT_ERROR_NONE; } /* LCOV_EXCL_STOP */ -- 2.34.1