Fixed string comparision logic for gatt device address 39/197739/1 accepted/tizen/unified/20190128.061625 submit/tizen/20190123.050251 submit/tizen/20190128.005753
authorAmit Purwar <amit.purwar@samsung.com>
Wed, 16 Jan 2019 04:59:02 +0000 (10:29 +0530)
committerAmit Purwar <amit.purwar@samsung.com>
Wed, 16 Jan 2019 04:59:02 +0000 (10:29 +0530)
Change-Id: If1fdb278e8e3c20bdbf2a6b3ee7966221bc24ea5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
src/bluetooth-gatt.c

index 7c22bb1..57751d0 100644 (file)
@@ -195,7 +195,7 @@ bt_gatt_client_h _bt_gatt_get_client(const char *remote_addr)
                if (client_s == NULL)
                        continue;
 
-               if (!g_strcmp0(client_s->remote_address, remote_addr))
+               if (!g_ascii_strcasecmp(client_s->remote_address, remote_addr))
                        return (bt_gatt_client_h)client_s;
        }
 
@@ -3971,7 +3971,7 @@ static bt_gatt_client_h __find_gatt_client(const char *remote_address)
        for (l = gatt_client_list; l; l = g_slist_next(l)) {
                bt_gatt_client_s *client_s = l->data;
 
-               if (!g_strcmp0(client_s->remote_address, remote_address))
+               if (!g_ascii_strcasecmp(client_s->remote_address, remote_address))
                        return (const bt_gatt_client_h)l->data;
        }