Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7046907ybi; Thu, 13 Jun 2019 08:40:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4I3J7FEb8GusOcbsxuB1GnrIwGfr+TSuvrAR8SjAsceuJtMONiDs7GSTc1GHOMQMVB+7c X-Received: by 2002:a17:90a:ae02:: with SMTP id t2mr6301713pjq.41.1560440448585; Thu, 13 Jun 2019 08:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440448; cv=none; d=google.com; s=arc-20160816; b=BJRYL6CQ4nJ7VTFXIhRtX97rVPZUqT2LucDqnOJCDqfvPGz8XmWwGwylc3sI50OABb +mOdj2PKoyx9usr+WKhGt8YTkU2fpx9j4AP0o2CsODe+DkWkzVVkuumy1vIHMFbah9l0 ++VkQcC347jtJ2DeV53l/Yf7uhQn6rqMGJsP+0wO9rLvq2kKC/2YIch9iq7n3wVBedDY EYZqgNySJ5qcbDDIppKcL4wGf69NNpackDiJ0+0N6XZPEJ0lfRSAdX+7W81t3pDWvRN3 pHKllseVYtX1j0/dqR91KnNcuuEofLaaLJQKvfG4bBbmxfGWe05WI6a7KhOUqPgtz4Oo rFqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=Bo0tl4a9UGSBPcbP4Y30bgplmG5Z1+NSNsMybiRZb7I=; b=gT1jzmYB1/3qi1KEzZR57/UT1qwSkOZdhJh2z1+OfddpHo8bRRk5FlvLulH1DYnDHE AJI6rlBxGEnRb4ttV1goDN7jN1U7LtyYuXLKvZhhh2wzJK98d7DC83zd5/VU7PooqCNb BcKBCOSo6oVE23aTEkVzTFZlnu9IK9zFZZelXnWXJ+HXNEFwhx9OmzXiZ+wEo8T1QMtN Qf3A/nmDtdfs/zf0oztNKeTrPx4zqXbf39nWvWzvAlImDYgiz/W0YOiU8uSXNQC2/SLC f9qdpQZmrObVGytlzLQUy7+yo9w08LQ+ow4rzZdxlwpl8hDtvwbsoRmGml8Swu8xQiyA XeNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=R4DCkEnd; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si101657pgw.188.2019.06.13.08.40.18; Thu, 13 Jun 2019 08:40:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=R4DCkEnd; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728780AbfFMPjV (ORCPT + 99 others); Thu, 13 Jun 2019 11:39:21 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36154 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731924AbfFMJy5 (ORCPT ); Thu, 13 Jun 2019 05:54:57 -0400 Received: by mail-lj1-f193.google.com with SMTP id i21so17905394ljj.3 for ; Thu, 13 Jun 2019 02:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bo0tl4a9UGSBPcbP4Y30bgplmG5Z1+NSNsMybiRZb7I=; b=R4DCkEnd4Y3yQO97WipeO+Sc/LyC6XTodOrHDEvFCknwoHSWzdBGOoGSFwlYs/DOMY TqHJcCaroG9/bnMCpg74iMM4CFP6KzveOa07a/q5ZflJtUHiDFmsrBP3tDpjm0mKEHuo MnYmexQ6QZ834yU86BvoGdqNCbeq9BoVqVjYsyuewPrwc4TRDUf0BlcNY+pYdFSuRIXo h0lBMYmkIusX9aLkCAXSF0YT3u8cg+efrsG052OlxM3ZR9CcE2YE9Wdf527lI8ij65zN 2PsZLW+6lhn4IyXPHiCtDXj0dD02zk2u5XKLAzceLuJTYuhAKZ+2LmnkhNNyMIP9eWE8 JMRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version:content-transfer-encoding; bh=Bo0tl4a9UGSBPcbP4Y30bgplmG5Z1+NSNsMybiRZb7I=; b=lovG4KlreJ6hbIgLYz5gjVnmwhFITwWP3FPiirnqqkDHQ9LW/nQrov4VncrmzfEIpZ blPrsZI4fTgpqi3pms/rxmca3oEm//dwjAjQVdb4/grr5atDdiPtBcJv3p7QSyIvpSi5 OcNi7Go6OvadmpMr0z+PlZMYu1Z+SBn6wxiwD/9jNW1JXy0XAK18xnFn+StsdZygsBlZ rfvFxJONU/fVzA/VI3jLn+mtNSwDjLTknjoc5HuxQ2TD1QPo/pSJn5hvqmhvtjZBx2Eh KhiaaUm4WVHrsOexEU6gWpl2MrAA0bs3O0X+qv8r5OowtyvHCOC1rK/mGjZHxRSik3H/ eeag== X-Gm-Message-State: APjAAAWeJS8/WHhCmgpD0cPxRXaWCtbU5A0TM8VM5FNlrKV7hNpydYJU qhjMpB/QCdP9lKqb8hU3bdtQVAXmIF8= X-Received: by 2002:a2e:9188:: with SMTP id f8mr27382036ljg.33.1560419695304; Thu, 13 Jun 2019 02:54:55 -0700 (PDT) Received: from ix.localnet ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id z12sm502317lfg.67.2019.06.13.02.54.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 02:54:54 -0700 (PDT) From: Szymon Janc To: Bastien Nocera Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH 1/2] sixaxis: Fix another problem with already setup devices Date: Thu, 13 Jun 2019 11:54:51 +0200 Message-ID: <2507772.q0OjLXfh9R@ix> Organization: CODECOUP In-Reply-To: <20190607065411.28502-1-hadess@hadess.net> References: <20190607065411.28502-1-hadess@hadess.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Bastien, On Friday, 7 June 2019 08:54:10 CEST Bastien Nocera wrote: > If the device went through any kind of pairing once, it might have been > set as trusted. Make sure to set the device as untrusted before starting > the cable pairing authorization so that we don't exit early from > process_auth_queue() (which considers trusted devices to be paired). > --- > plugins/sixaxis.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c > index fed68d2d8..12638829b 100644 > --- a/plugins/sixaxis.c > +++ b/plugins/sixaxis.c > @@ -365,6 +365,7 @@ static bool setup_device(int fd, const char *sysfs_path, > > btd_device_device_set_name(device, cp->name); > btd_device_set_pnpid(device, cp->source, cp->vid, cp->pid, cp- >version); > + btd_device_set_trusted(device, false); > btd_device_set_temporary(device, true); > > closure = g_new0(struct authentication_closure, 1); Both patches applied, thanks. -- pozdrawiam Szymon Janc