Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1502748pxv; Fri, 25 Jun 2021 14:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwrI8Fy0Zmrhb+U+FPIxycb+8SqdwWUt9FETmyQT5CktBzYOvXQJQJjJx1appI4MdmSA5t X-Received: by 2002:a50:ed8e:: with SMTP id h14mr18173443edr.272.1624657610668; Fri, 25 Jun 2021 14:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624657610; cv=none; d=google.com; s=arc-20160816; b=De6SlPkRndS0Ms+deylTUAWPNpWlzTn1ykXrpAadWz1BdZ+wnRb91NYAamzBk4gWf1 sc6e1T3tazD8haEslSlZtJkQLPvFMn+7O1myc7y0rPqATe2tJKbk/Pka6rFIW0Ef4vw8 +Ks3+VevCIfL5RYX+0YDhT7tywNwXpHoxksgkKmDMP95aPXcSG7WtL1wxC/pwr2mcInj hZ8XFsmJTfaf9L6uBK+DBcLNxRq4aN0GSbo0zcayKsjBV/dDbLIbwedDdA1O1wgPPsfU ZuMAhtYI2DEg0Nb/hA/a/QjYywWZTDfwtynFBEPmRMCuxdhqAd+kQgXPRVY5KhmaIJLC 7MaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=6AvsLhIYeBcl9UVKYnuR7y/6I0ka17Cr4vSQQkbRldk=; b=b4848o4SMJ2CuSgm6IP4REueXZMxKHzpnajJejXBcrPVVYw9cxowjzKHG4InH9/e5V Inr1cdonM/7WpXx02WmRkOc060rL1G/2APKUdie5vZXMnMeodPEzLOphzRbBDdUo/Vzx rhgMFzjhPQbbkCKSMfLEo3hoDFen77LW/KJ30R9229+AytlTYvLpwTFWRgmLTHFqhqSg kC4XbiYl85r3kusStKifLwOVKBOxNPaGPleojJQj8e6A77X2nno8y0LN48dc5FHLijv0 ZkAGl3B0CU0SaMnurPd0dd23ieOmESt3M160W4G9cxJHZZfv/UYiiLXvD5lzZRCiNnIl jrYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si8909844ejj.146.2021.06.25.14.46.09; Fri, 25 Jun 2021 14:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbhFYVq5 (ORCPT + 99 others); Fri, 25 Jun 2021 17:46:57 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:53901 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhFYVq5 (ORCPT ); Fri, 25 Jun 2021 17:46:57 -0400 Received: from smtpclient.apple (p5b3d2eb8.dip0.t-ipconnect.de [91.61.46.184]) by mail.holtmann.org (Postfix) with ESMTPSA id 9739ACED16; Fri, 25 Jun 2021 23:44:34 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH] Bluetooth: Fix handling of HCI_LE_Advertising_Set_Terminated event From: Marcel Holtmann In-Reply-To: <20210623035902.3572144-1-luiz.dentz@gmail.com> Date: Fri, 25 Jun 2021 23:44:34 +0200 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <28A15EE5-076C-4CA9-9BBD-5E48A8961E2B@holtmann.org> References: <20210623035902.3572144-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, > Error status of this event means that it has ended due reasons other > than a connection: > > 'If advertising has terminated as a result of the advertising duration > elapsing, the Status parameter shall be set to the error code > Advertising Timeout (0x3C).' > > 'If advertising has terminated because the > Max_Extended_Advertising_Events was reached, the Status parameter > shall be set to the error code Limit Reached (0x43).' > > Fixes: acf0aeae431a0 ("Bluetooth: Handle ADv set terminated event") > Signed-off-by: Luiz Augusto von Dentz > --- > net/bluetooth/hci_event.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel