Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1746155pxv; Fri, 25 Jun 2021 22:46:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM5Sqher8Ne8uYq1vBnOIP54gifrLZuLJ7OhPo3rNyGSNlUb3rfQU+m35OvYp4PUX0urr3 X-Received: by 2002:a6b:910:: with SMTP id t16mr11774645ioi.175.1624686361908; Fri, 25 Jun 2021 22:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624686361; cv=none; d=google.com; s=arc-20160816; b=TcQqoKZWSQNZb+rD1C6uhdPQap1LjT3G6/QGX2w1rqp6FcSBNu0It3sgwMYHK1DeDj /OM7IaTq8lbJxsLuwjcO6lihvrj+Y3qegy/70nhI70Ju20TGsmDxjZDME8DIAyCy6yaN 9Jtx0w+JBn/Kax0bsSH1OqdkZqIl0dOfZmI/jfM9v/OYBWHpHwnddeo1PBqgytAS09UY 7gTyj1ljF0+Bv/gb9eyD/FqI55izernWld+0a3vggWrO75NOTKh7LClEYd/mvHc66Top diEgZCasYG2+kbskRH0Yn9lGb60DPkkuEQeairVWDycZoWibMq9FfNdc3V4ds9oxNIDp zUOA== 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=xz1Kr65mLLvV7FJ1sIVJiKh7VZ+q6AhdTFYCYgAS3Vw=; b=c/YjO8FCnpbkgGMnHTCvQw8/N+mZx0j8M66XKrBbnSmAMlAfD/fknDjQLTowx1svdF JDVgCi70vEJ8XpXY+caHbSCcBzMahwI3Tu530Dc1IiGREdZMWCFwryRhyqCW4qrDer/6 kmvkay7f8++KfNTV1oOpl9FE9t/jXrypwfibndTuTWJo5aqjkitXbloJGhQ1J2XZEn3f 3eGg+fOB/wpNZgrV3E3TWlrvLbb/ZH7f+Z9/tFDJK9P4Kefus39RKwbrXnHm9wyQKatg 9FRlNNKktLaFUqw7aLdxJYNSl7Wgiw5FwPfg56X2REfls6OkODWsVZyvz2wjFOCjl+jc 8ZyA== 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 15si9564687ilz.158.2021.06.25.22.45.48; Fri, 25 Jun 2021 22:46:01 -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 S229671AbhFZFrg convert rfc822-to-8bit (ORCPT + 99 others); Sat, 26 Jun 2021 01:47:36 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:53167 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhFZFrf (ORCPT ); Sat, 26 Jun 2021 01:47:35 -0400 Received: from smtpclient.apple (p5b3d2eb8.dip0.t-ipconnect.de [91.61.46.184]) by mail.holtmann.org (Postfix) with ESMTPSA id C8D5FCED1E; Sat, 26 Jun 2021 07:45:12 +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 BlueZ] doc/agent-api: Add AuthenticationFailed method From: Marcel Holtmann In-Reply-To: <20210623184355.3685859-1-luiz.dentz@gmail.com> Date: Sat, 26 Jun 2021 07:44:52 +0200 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <0571E549-AFD1-4EB4-90E9-F2825F1CAA86@holtmann.org> References: <20210623184355.3685859-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, > This introduces AuthenticationFailed method which is used to indicate > when there was an authentication failure with a remote device which is > recommended by the core spec: > > BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1314: > '5.2.2.3 Simple Pairing after authentication failure > When the link key is stored, subsequent connections to the same device > will use authentication but this may fail if the remote device has > deleted the link key. Table 5.2 defines what shall be done depending > on the type of the link key and whether bonding was performed or not.' > > So following Table 5.2 recommendation the AuthenticationFailed method > would be called when authentication fails with a bonded device. > --- > doc/agent-api.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/doc/agent-api.txt b/doc/agent-api.txt > index 0d9347cab..91d752b0a 100644 > --- a/doc/agent-api.txt > +++ b/doc/agent-api.txt > @@ -183,3 +183,8 @@ Methods void Release() > > This method gets called to indicate that the agent > request failed before a reply was returned. > + > + void AuthenticationFailed(object device, byte status) > + > + This method indicates that there was an authentication > + failure with a remote device. you are forgetting to describe what status is for. Also if we follow the language from the previous agent method, then this should be IndicateAuthenticationFailure. I know it is a mouthful, but we always phrased the method names as action or information targeting a user or UI to do something. Regards Marcel