From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D34D1C83000 for ; Tue, 28 Apr 2020 09:38:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B13C0206C0 for ; Tue, 28 Apr 2020 09:38:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727094AbgD1JiM (ORCPT ); Tue, 28 Apr 2020 05:38:12 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:46509 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727052AbgD1JiL (ORCPT ); Tue, 28 Apr 2020 05:38:11 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 3E7ABCECEA; Tue, 28 Apr 2020 11:47:49 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] Bluetooth: Terminate the link if pairing is cancelled From: Marcel Holtmann In-Reply-To: <20200414115512.1.I9dd050ead919f2cc3ef83d4e866de537c7799cf3@changeid> Date: Tue, 28 Apr 2020 11:38:09 +0200 Cc: Luiz Augusto von Dentz , linux-bluetooth , ChromeOS Bluetooth Upstreaming , Alain Michaud , "David S. Miller" , Johan Hedberg , netdev , LKML , Jakub Kicinski Content-Transfer-Encoding: 7bit Message-Id: References: <20200414115512.1.I9dd050ead919f2cc3ef83d4e866de537c7799cf3@changeid> To: Manish Mandlik X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Manish, > If user decides to cancel ongoing pairing process (e.g. by clicking > the cancel button on the pairing/passkey window), abort any ongoing > pairing and then terminate the link. > > Signed-off-by: Manish Mandlik > --- > Hello Linux-Bluetooth, > > This patch aborts any ongoing pairing and then terminates the link > by calling hci_abort_conn() in cancel_pair_device() function. > > However, I'm not very sure if hci_abort_conn() should be called here > in cancel_pair_device() or in smp for example to terminate the link > after it had sent the pairing failed PDU. > > Please share your thoughts on this. I am look into this. Just bare with me for a bit to verify the call chain. Regards Marcel