From: Wootak Jung Date: Mon, 15 Jul 2024 04:07:57 +0000 (+0900) Subject: Fix the gatt client wrong mtu cb unset issue X-Git-Tag: accepted/tizen/unified/20240829.153504~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0918f7ab4910fff8c1d9c1667d6b5a229c9a57d1;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix the gatt client wrong mtu cb unset issue Change-Id: I16f6d1d6b70053005e93a5e9852e966f5a359b14 Signed-off-by: Wootak Jung --- 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 */