From c8836711ad0725fc780dd999784ea169a344734b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 20 Oct 2022 15:55:55 -0700 Subject: client: Fix advertise.data command advertise.data when no parameter is given shall print what is set on ad.data not the ad.manufacturer which is a different field set by advertise.manufacturer. --- client/advertising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/advertising.c b/client/advertising.c index 097b9437f..fb9b049fd 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -760,7 +760,7 @@ void ad_advertise_data(DBusConnection *conn, int argc, char *argv[]) struct ad_data data; if (argc < 2 || !strlen(argv[1])) { - if (ad.manufacturer.data.len) { + if (ad.data.data.len) { bt_shell_printf("Type: 0x%02x\n", ad.data.type); bt_shell_hexdump(ad.data.data.data, ad.data.data.len); } -- cgit v1.2.1