Fix the gatt client wrong mtu cb unset issue 30/314530/1
authorWootak Jung <wootak.jung@samsung.com>
Mon, 15 Jul 2024 04:07:57 +0000 (13:07 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 15 Jul 2024 04:08:59 +0000 (13:08 +0900)
Change-Id: I16f6d1d6b70053005e93a5e9852e966f5a359b14
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/bluetooth-gatt.c

index 4330f751039e6ca781cac9afdd0cf14a9ac8f19f..4ce8c324bfb94a3ebcd151b79a15e3eeaacffc6e 100644 (file)
@@ -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 */