Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3920313ybz; Tue, 28 Apr 2020 02:39:06 -0700 (PDT) X-Google-Smtp-Source: APiQypJQAXeAZiSr6O8t9FIMA6ExobAiyHYUWtsOQyDBxXyf1X3rdjW9tZzkx/BGk9j/YVXRbRcF X-Received: by 2002:a17:906:2351:: with SMTP id m17mr19225063eja.179.1588066746382; Tue, 28 Apr 2020 02:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588066746; cv=none; d=google.com; s=arc-20160816; b=xsMyVVn5U/Sb+ziXIqo//iHFNy+wWxNxm6HfCLuVVfrjWVSJnFUmKf5hC/jzfEThN4 /d6PTo3LdBjnOsn8q8IIiruD4aQa6ovtVOPzhl3jGha3mYDQsGg3gABgD9lJJ4iLLNhH SoeEG5NFWvWM0AFrR5hd3/xDulADT3URq5tk7f3z3/DT7dLCFo8Fp2Q3H9Gcbi1lpYui 3PtHjZHbpjnun3pvGLrENAE1fCusIe0rkgi5yX0Sb/vtrfxZVPzGgEXb/pk/Ky1AeQz+ lrbPoH10B9+lzSk8T2sIlLsiSDyHXPdI6ubZZOdJ7PijhZ7jyGlehMW+fxEulLTRkdws EpCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=DdEsZc2JoEx8auK41/wryq6rd856ab7e5J35kWymW90=; b=QHBAZRkSUJHgoy83t88kt4JZu9OuBAhjhC0eNNLnqVLUFlQWMQDPiKfHnsx86c389c xZ1IMXwRl71mNE99LfVoQc4qV7S2YIo+volvjAZOSM0SlATElZCwEUykmpfnw+OQicQu eHDYSwCpIc6FFmJ6C3pyQTo5617bSs+1eBvOVXbBUsFb/gi9ZRQ9hP1rjuFnXm+LoHaT SoMzjLL2suEmmz/Ixm57wrZXMq6ppOof/evxTQT02GpPcxCDvifgwCedXWAVb/bruYyL h1rUkv7XGbfYLP6NxjePk1h/Uw43KWflv+MAnju0LJeYK4hmPu5OMx4P/8w/2jZ0elQX mq7A== 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 p20si1601387ejw.505.2020.04.28.02.38.42; Tue, 28 Apr 2020 02:39:06 -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 S1727023AbgD1JiL (ORCPT + 99 others); Tue, 28 Apr 2020 05:38:11 -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-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@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