client: Fix not able to select attributes if parent exists
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 20 Aug 2019 10:40:10 +0000 (13:40 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
When selecting attributes by UUID the code was not checking attributes
that are not a children of the current selected attribute.

Change-Id: If08b0bc5b7e9c36931585fb3f18f35c9db2616ab
Signed-off-by: himanshu <h.himanshu@samsung.com>
client/gatt.c

index 00db81b..2059677 100755 (executable)
@@ -560,7 +560,7 @@ GDBusProxy *gatt_select_attribute(GDBusProxy *parent, const char *arg)
                        return proxy;
        }
 
-       return select_attribute_by_uuid(parent, arg);
+       return select_attribute_by_uuid(NULL, arg);
 }
 
 static char *attribute_generator(const char *text, int state, GList *source)