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 3DA76C433DF for ; Wed, 20 May 2020 14:31:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 14A39205CB for ; Wed, 20 May 2020 14:31:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726933AbgETOb2 (ORCPT ); Wed, 20 May 2020 10:31:28 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:50744 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgETOb2 (ORCPT ); Wed, 20 May 2020 10:31:28 -0400 Received: from marcel-macbook.fritz.box (p4fefc5a7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id BA18DCED09; Wed, 20 May 2020 16:41:11 +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 4/4] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm From: Marcel Holtmann In-Reply-To: <20200519202519.219335-4-luiz.dentz@gmail.com> Date: Wed, 20 May 2020 16:31:27 +0200 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <56E3599B-2B9B-479A-B2ED-832B2357158A@holtmann.org> References: <20200519202519.219335-1-luiz.dentz@gmail.com> <20200519202519.219335-4-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz 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 Luiz, > This makes hci_encrypt_cfm calls hci_connect_cfm in case the connection > state is BT_CONFIG so callers don't have to check the state. > > Signed-off-by: Luiz Augusto von Dentz > --- > include/net/bluetooth/hci_core.h | 20 ++++++++++++++++++-- > net/bluetooth/hci_event.c | 28 +++------------------------- > 2 files changed, 21 insertions(+), 27 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel