Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp648804lfv; Tue, 12 Apr 2022 00:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ5Z3I7fNEu2FvTlYo/Rdiew2G/4lMy6lbxy7TlzdfvV/78UlKIa56Jkc3k6PMID0ihBSD X-Received: by 2002:a63:5061:0:b0:39c:d0da:677b with SMTP id q33-20020a635061000000b0039cd0da677bmr19701509pgl.599.1649750185971; Tue, 12 Apr 2022 00:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649750185; cv=none; d=google.com; s=arc-20160816; b=O+7R5dew8oRK7ssDVU4FJoKNtTENmtxjSR6YP7oHSnjJk8JaN8sRCaTVhm/Q8zZmey 2CCTePM2OuNOSfPebFxF0CamL0z9+CxKyUHR9BdVKqjZhtH5Ol3RAm0BrkYThJesX4gx LWFOjXhFk3xnLlcZSbwHHbbmie38pVYvJ2HZZHbm2C4plWlBifJ6t/Ua7C+PAFchS11O U+coP8euN596t43j7yNH+wMLU4IAvo3Z/J9ULBI499mvgRfEzRm2as5lAsWobvt5fapL r8hvxLEcekT/GmuQ7sr4H4TurMwAOnBn6NTScOBXBfK2cY13vLPkuiCTQPlwV0u6lYNI SxNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=sqiTtTIsJV5GXWBvKuLYd7/w4LPfX2WMNWbhqbU3rOY=; b=K4PLIreydXEMUyCv061JW+UnCj4uoewmcN93qphIGlS1uGny0TBoy+AKPIEHGDd80O f0vMDLXLs3E2H58aw3z+2Iu/aVdWthOMcoDX7A0w4bbhGrVVaGL0cxXA+XcRtCGlSpN9 1B7R+ql4tvcfOn93daVVUPW4EDy3CllboO7RPZn5xI9MSQDJaPHlDztehKCqbZOsdHIx 9Z7pPb6lUUhFA7Nuf4q7BqsMu46bZuY7Jly86rnnyu1UM+lu+FnjzHeI3wnhN9XhyaCr yCcdMmzE3u6cGg73vSVqE59i/Ox73wwRIF3LcdkvsxV9dD2YmRLdmCk9HE/kheXFjhne hz7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k63-20020a638442000000b003816043ef4esi2016285pgd.323.2022.04.12.00.55.57; Tue, 12 Apr 2022 00:56:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346902AbiDLFax (ORCPT + 99 others); Tue, 12 Apr 2022 01:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240383AbiDLFaw (ORCPT ); Tue, 12 Apr 2022 01:30:52 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA5834677 for ; Mon, 11 Apr 2022 22:28:34 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aef95.dynamic.kabel-deutschland.de [95.90.239.149]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id B4F5761EA1929; Tue, 12 Apr 2022 07:28:31 +0200 (CEST) Message-ID: Date: Tue, 12 Apr 2022 07:28:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH BlueZ] btdev: Fix not cleanup ssp_status and ssp_auto_complete Content-Language: en-US To: Luiz Augusto von Dentz References: <20220411235804.3776702-1-luiz.dentz@gmail.com> Cc: linux-bluetooth@vger.kernel.org From: Paul Menzel In-Reply-To: <20220411235804.3776702-1-luiz.dentz@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Luiz, Thank you for your patch. Am 12.04.22 um 01:58 schrieb Luiz Augusto von Dentz: > From: Luiz Augusto von Dentz > > This fixes not clenup ssp_status and ssp_auto_complete flags on cle*a*nup > auth_complete. I’d just write: Clean up ssp_status and ssp_auto_complete flags on auth_complete (Same for the commit message summary.) > --- > emulator/btdev.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/emulator/btdev.c b/emulator/btdev.c > index f70fa9136..ccfaed36b 100644 > --- a/emulator/btdev.c > +++ b/emulator/btdev.c > @@ -1366,6 +1366,11 @@ static void auth_complete(struct btdev_conn *conn, uint8_t status) > ev.status = status; > > send_event(conn->dev, BT_HCI_EVT_AUTH_COMPLETE, &ev, sizeof(ev)); > + > + conn->dev->ssp_status = 0; > + conn->dev->ssp_auth_complete = false; > + conn->link->dev->ssp_status = 0; > + conn->link->dev->ssp_auth_complete = false; > } > > static int cmd_link_key_reply_complete(struct btdev *dev, const void *data, Acked-by: Paul Menzel Kind regards, Paul