Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32529202rwd; Fri, 7 Jul 2023 15:58:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5NOCW3L366mUQBt34gVHUwrG8RBr7wjzEDxI2CnCyFPhXB1mPNT/Rp0E4EZq+HCrIpPYz X-Received: by 2002:a05:6a00:1886:b0:668:7494:384a with SMTP id x6-20020a056a00188600b006687494384amr11024202pfh.12.1688770700330; Fri, 07 Jul 2023 15:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688770700; cv=none; d=google.com; s=arc-20160816; b=GgBrWib6q6IvGkDV9a9t4V7/xB9peMEzObU0NhDTWtr9Szi7HM6IkYkK+Qi4DrE+38 vUDivDkBnVuDl07vJ+tl2ipqzeD+3b3cLyy8zA2RiQWfd1KjIGwlZPermCM8LKvBXvNV S9t5N+Ca74okmt4qtMTDKzrtCT51Upq4W3vHkqxpKke+WvLwYaH5U0M0RlmIcYKfEF/G o2jpCvaUi78choUJnTxXj6k+Qf/7WvfQMQtNuxGx+hzdbGwwjkvayQB9wqzMveAd1trQ rt503vIhtShMSMyKDxpNbHPZiMsnRj7ffZgBgAHDA0bdIpDEE1w80qAHgC8pH5PBNcx+ 032A== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=dIvf/Hcd2SdfnTN2hhITh3CzA7mpuuX9g5aHh7kP08g=; fh=V2LL5OuZUBGeSu6TXDWykcThOoazTGUpkln19rrO2KM=; b=R4X79cIngw4nhryKJdo1vZdze9k+YUIzG+r/3NKEbNMZZOYmEoewhCIcWl9PFwm+C0 IK8ti7kDS5HIu/kFkxub6wkt3ILsKdj3UhEJFOL9iduFj3oAC6jSrvym2Muo9E3TYwrc 7vajomjX3s4w4ZttE7+yIa7mupkHcK8/3P1jKKlS2Fit5creTv0g2vVwV1Lukj6oXnAl 9u40CDRu7MJjB424w+8ySw0YP394gMza4QMchPg/b/9RE0ybTCwr8lOH+eErC4fJm9wY ZsIp1JuYZMmoxnYwdFHizfecr0c7+sPUUMNvv6dOxrgcmlWbyDZACMDczprxBTM3TTHw hkgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=okzUbMwx; 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 c5-20020a631c05000000b0053f6910ccc8si4607227pgc.747.2023.07.07.15.58.07; Fri, 07 Jul 2023 15:58:20 -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=20221208 header.b=okzUbMwx; 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 S230107AbjGGWoo (ORCPT + 99 others); Fri, 7 Jul 2023 18:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjGGWon (ORCPT ); Fri, 7 Jul 2023 18:44:43 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DEAFAF for ; Fri, 7 Jul 2023 15:44:42 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-7659db6339eso121742885a.1 for ; Fri, 07 Jul 2023 15:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688769881; x=1691361881; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dIvf/Hcd2SdfnTN2hhITh3CzA7mpuuX9g5aHh7kP08g=; b=okzUbMwxq3KpeBm9dqgFPB8ksGMLzJHrPNzV8jNI39Oc5NnQ3y0cipFD6yJZacVEY6 plP+6uc3DR4WCzxc/q9mq9MUD0IQ9YbjOBis/W8iPTPP7ZDSm8rlyi/8oFbmFLUUf6WJ 0g6VafAoKapxJEu1J/teoPWzwLBe7K2qJMSJg94SklxAkC0QsxyRn2ZR/mCqPGNEGgLi Bn+9Pxti1IUtkS7LnHFnVh/BRKtaluy8YEfqN5JZqXcP/EBj9VYxxtzoCkG2xUmlWme2 L7CxkjFGhzlyxU8ds+uQE1lLjYnt63EVZJf+3tv9icpSHWgg8ygtoGHmnzx8G9wxrG+w kfkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688769881; x=1691361881; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dIvf/Hcd2SdfnTN2hhITh3CzA7mpuuX9g5aHh7kP08g=; b=T7wyiEk4f+i7WzNIiG8INfdfyJN794RdVWZ3LQA5Ynvd29OllePI+cei8yf6svrDUk Bx5AkFIvx+wf/Fc28y9S+C1qEfUk9DwXCdV5Ks+U0e4nrq/xy6WmR7krnMvhIDhaGjQ3 R0YY9dN8wRJUE+LaVetj8H6bBDqmjdFYURznDeou/BL+j8VXPO2oTQLc8QpYV+uIoRC+ X7sDw3Z338dY0eabDA8tb3UJc523ZEjUA4/bqe+LmSi70BpjEZHDkkUaM8lKCgNjfmPi 16Td0wpOkIElYOeAh+dCPCJMP975eIYlPwyUpAwjutg4IR1X7vAVO5otzdGMYpS5qO4V fZJA== X-Gm-Message-State: ABy/qLbjLleq5QyMPYkg12rciYlUVouljQIfQh4N4fLZcNoYwmb2cdNz tg3pkAccPGxaj+5Mv57kzjygYVO2Fy0= X-Received: by 2002:a05:620a:45ac:b0:75d:49e6:26c0 with SMTP id bp44-20020a05620a45ac00b0075d49e626c0mr7106076qkb.5.1688769881166; Fri, 07 Jul 2023 15:44:41 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-236-201-58.hsd1.or.comcast.net. [71.236.201.58]) by smtp.gmail.com with ESMTPSA id z28-20020a05620a101c00b0076730d0b0b9sm2274482qkj.14.2023.07.07.15.44.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 15:44:40 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 4/4] client/advetising: Allow use of EA data length Date: Fri, 7 Jul 2023 15:44:34 -0700 Message-Id: <20230707224434.677627-4-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230707224434.677627-1-luiz.dentz@gmail.com> References: <20230707224434.677627-1-luiz.dentz@gmail.com> 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,T_SCC_BODY_TEXT_LINE 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 The code was supporting a maximum of 25 bytes (31 - 6) to be entered as advertising data, but in case of EA is used that allows up to 245 bytes (251 - 6) to be entered. --- client/advertising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/advertising.c b/client/advertising.c index 24852d93d1ec..a7474d6a2984 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -28,7 +28,7 @@ #define AD_IFACE "org.bluez.LEAdvertisement1" struct ad_data { - uint8_t data[25]; + uint8_t data[245]; uint8_t len; }; -- 2.40.1