diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-10-20 15:55:55 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-10-20 15:55:55 -0700 |
commit | c8836711ad0725fc780dd999784ea169a344734b (patch) | |
tree | 3655cdf8e96dcd3e4231fc94ff9561319f66c3d2 /client | |
parent | 3153b0ecfe16a885994a30463a498bfeff5ca650 (diff) | |
download | bluez-c8836711ad0725fc780dd999784ea169a344734b.tar.gz |
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.
Diffstat (limited to 'client')
-rw-r--r-- | client/advertising.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |