Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1672606rwi; Thu, 20 Oct 2022 16:03:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hM3+j6sLMSZZMIwSeXkEb5TPjHdjM8gJDaqzIS0zI/hSgvcHEsi0KMSycX5CdpsiqTqy4 X-Received: by 2002:a05:6a00:b50:b0:566:917:e588 with SMTP id p16-20020a056a000b5000b005660917e588mr16420248pfo.2.1666306983232; Thu, 20 Oct 2022 16:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666306983; cv=none; d=google.com; s=arc-20160816; b=fPRaFSffIkst/L+IG9Ghxtk5+PVGTK9vcuXvVQ7Sja4nbeM93PqmARzXGoqgLr8cJn 7MYDyyRktHY6BmqRJuk/mtLBB+IUB4hV9UDsRHmVDXiGffOUY0sJtu4TVrZKqganD3ro DDE+LmqvIzrE5+VqtASrDxoYxT6DBOK9EAJ/wrFBu1wbtsTGRE5iif2PbhypmRU8PfUS tjkcm8h/m7cL+SmhNr/54kVc8icsm0Y0Jr/7jgeQmVS0KBekaQsuquAy6p5QAgDwdu01 YsDEZo9fWdv/1F+BPW0kKo8O/BTrIGpvHSWqFO9+669sythmXxEpdXCKmVoZq8C7m3z6 jwAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=ExdYjNCXcG+fesSjNwNca8v+0SEwW6z7wb0173HsGuU=; b=M008g6OYPHEHEcAz0EBik5HumM7/QuZvOw0Q/21+XG+pIpgt90TcR2eUZKbX3WI8vZ bV+R5MJqy+DwLea0ecciBy1nuEPqmO/ItK+iCJDNZGFhYkUDaXgVgA4nfOiMjs1uHIT/ 7iopNiPrmb1BTByHzNgYiCpMIicDPqxULowuwlkwkkdUFT4sv5c5t6XSEqrByT14RZ1V AxLvdicY4XRam+Cj0nYID1JFWmFioyMzauAE92SQvzAiQ6HejB7vscJnko+fPaskHWbX kK+AQwo2QnM6LhvnNqMeEdoiw7r4plMoy6Jh4lYtws23RbAexGCrnnccOCvu6OeK35TE 9EkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gICNczzE; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 27-20020a630e5b000000b00439e032490csi23756228pgo.350.2022.10.20.16.02.34; Thu, 20 Oct 2022 16:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gICNczzE; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiJTW6K (ORCPT + 99 others); Thu, 20 Oct 2022 18:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbiJTW6I (ORCPT ); Thu, 20 Oct 2022 18:58:08 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C50E2224A8A for ; Thu, 20 Oct 2022 15:58:07 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id a6-20020a17090abe0600b0020d7c0c6650so4968637pjs.0 for ; Thu, 20 Oct 2022 15:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ExdYjNCXcG+fesSjNwNca8v+0SEwW6z7wb0173HsGuU=; b=gICNczzEWDaEtjQN6n21gzB8jQAPiFbLOwSbPbPg9kEgiccVo5RusUq+REky58nYqP vem0tuwKrgtQQ1NgX23abbEQ0XHMalUEffOGwPcRlvCx9wQ+SW3SKOImT7DrePM0xyiX afP4qwuw60M5zy39lJoxC0VRt30xMZGomLc/09vYrlSEZgg6c96Fn1VlYOWboPqFBNOO YfLi+tz/4+tzRSeIhwBdxBR4aKsbFDc1JhEq6xpL4+v5JoJ/V6k/DYOpPqYqfWS/O7zH tz/2LCKARVqLZE9YpJ4qnp3js5RTbVCozpy3PnwQcxIq2uB3j58D0IMN41Q1mDCQQOVJ 45SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ExdYjNCXcG+fesSjNwNca8v+0SEwW6z7wb0173HsGuU=; b=p/7hj6Ih5ymAAPH7zzzbiRjO3P8ntzN77029PAwHxLwTJ0o2whwuXcZfBAOOrw9O8F Ki8kvJjuRHuKleLfeFMs+ZqfJ3LSBqFov2jHvdOZl0tIe2zi4i0t/eQJtqg4PRgwk+5p HhekZv1R9yU0TN13NclOklg3Op9QRYnrA44fznOwQwQYy9ahLVBm0Lp4aHM5rxZCgFqP YL2G93eDZI69CULOzc7E7f7YkvJBhQSV9LE8TxlIQjfJ2oMkYW1wvM3edEvD95XaAgrZ f+5lv4mO3YAvLTAZwiKFuAWQf/6JVv1fGZxMD14gV7NLT2X0yoP8hmQi9zljkSPO9Wxo ZmVA== X-Gm-Message-State: ACrzQf2M+OwXrf8vyRufZ11ChyDnWJ25zJ2f4QlVSyge8upgWSvgM0Dm NwWsGaxN6X4J9osA1zITaNOjAS3v1CY= X-Received: by 2002:a17:90b:4c92:b0:20b:a13:83c7 with SMTP id my18-20020a17090b4c9200b0020b0a1383c7mr54211387pjb.128.1666306686704; Thu, 20 Oct 2022 15:58:06 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id n30-20020aa7985e000000b00563517deaa8sm13775182pfq.117.2022.10.20.15.58.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 15:58:05 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] client: Fix advertise.data command Date: Thu, 20 Oct 2022 15:58:04 -0700 Message-Id: <20221020225804.291712-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz 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(-) diff --git a/client/advertising.c b/client/advertising.c index 097b9437f794..fb9b049fde78 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); } -- 2.37.3