Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3460948pxu; Tue, 8 Dec 2020 12:40:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzNyauTjhlkp2R0OAdeu5+MAdw55t1KsLzQY0U2PgjVe2M8YSFi55S/GTPVEIhtryvtgxJ X-Received: by 2002:a17:906:c83b:: with SMTP id dd27mr25071652ejb.356.1607460051375; Tue, 08 Dec 2020 12:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607460051; cv=none; d=google.com; s=arc-20160816; b=T1d5L560BPES3PZZzqJqu0VNj6pBDoftZt4ZAizARcooSEz3OX3Ock3focX8p0OAzG Tm2Snk0XWPGFaoO0adp4k48LPFupldCMDk9GfDD9tAjj3X5bn2wBgR1OHxlVoZyLVG+c vD5EFDjY5hJlC9ZMBKqAfiJqU/23Ehm1q1gKcUJNuIIgenYN9EQslm0HBfvnk0oZHBKK mJoY1lSdqYyNQz8sZznyKVLc8zvp8FVH81SOXTej1TujY7llkXXObVIDtMDTEG3sM7p+ O3b91KDE0+0cHFRrKWPJYJ8cpMfzIk7alWsgjRJ7CjXQfSPeN0hluIfoZXH9LpjTDYWa M1XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VS4bztVO9Q6HyqZ0Bty9RN6srIW+1eE+z8XoORtfkRg=; b=RjrwIfB36YP7CNPuBMehOIJ2IL3byLXZc8CiYtDcdOF6DnrVFo963cSnF5g4QZS3iN IhoAsEXWCMpl2NLglWEUun25msSdHYddMP/eJYXeu3zRGCtBGoE5M7cygDce/Azddd7S b1IfDKhH42B77aEBWKt0WvjWaHKKaezjRWD2BbEAWbUZ3Chku8HkoQaqjIHE5/AxHmq0 exnkHL9KNOH1Zc/QsVZxtOY9960um9aMAk2VpwAQicqhHg0wumNQ/kKlURGYXycAtlLJ uQkPdjX6tflqg9VIEa2+Z4jyGYAQ2tnv7pvaoC37mCwKs+SFiINLxMGovuXmI4oJ0vHZ w9cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RRXA3+6E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si5540925ejr.512.2020.12.08.12.40.25; Tue, 08 Dec 2020 12:40:51 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RRXA3+6E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731131AbgLHUQM (ORCPT + 99 others); Tue, 8 Dec 2020 15:16:12 -0500 Received: from mail-ot1-f47.google.com ([209.85.210.47]:34346 "EHLO mail-ot1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731073AbgLHUMu (ORCPT ); Tue, 8 Dec 2020 15:12:50 -0500 Received: by mail-ot1-f47.google.com with SMTP id a109so1394571otc.1 for ; Tue, 08 Dec 2020 12:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VS4bztVO9Q6HyqZ0Bty9RN6srIW+1eE+z8XoORtfkRg=; b=RRXA3+6EimiPunGCxMNxoPph8I3Kw2JKefKoltZLwQMv8J1r+qcWhxj/xFhIolRH44 HuQS43T36CN9SR3qmMEerghzuQ5IHNe0T7LZOXrxiMkhN/gvHd9VopiGrRQwGXweV6xv dmOxhkCioFcNbgxB+srAXyKi3RtAR9QmR/8NHkSQAgr+f9OXXBG+tirBhw1iskoRdkSN wONTO6hm+idW9SGqrILrVHfSom45GmBzQBqS/9ay9w4jCFDWMIoMa5UQvegoogfNl4no ATXGt0LugDLAQicIG/zFCnSGR1+n68ebqAeCK6wBGPK1MFC6AEBVGKoyHEKxTHJFl7Yc 5nnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VS4bztVO9Q6HyqZ0Bty9RN6srIW+1eE+z8XoORtfkRg=; b=UYPeTKAm1rPHcskRi3OktnAfTdN9Tx8V+vVI8CwIAK4OFQ/nA+UWl/r3Xy3ZRL4F0W VyZSXspE1qGhlUO+gyLDI4pQRS15lKQrME0yhOVKuL7hcpFdVYvDEExTHvCPwFoTeSSq kzX1VUB7wAeVZm6L/p+TATTzz7rzFD6YimKrcGQRuhkVyuIhrFAdIW33zdUBsk138KQM BtKPfNbgFVJTqTu4iuzbUfXv0WyAxW6q0Y88Rh5ObmPYwu9zvOj4dLRrSULVwg5ZC+mZ hPd95WrbxKXrBPh9SFiTvz0Ms9AAL5wwYlJ0vTFmJvXyZop79ykBA6dAqrsE2vPXs98J JYsQ== X-Gm-Message-State: AOAM532r2xdYg3B04efmnZQDuLH3yx8h+bd0E3cyry6YlZO4VAT/bTJN jAZXkkQ3K3mLdDzt1yDIAHCU0J0k+YAzOCK1d+V4vveGoLc= X-Received: by 2002:a05:6830:1319:: with SMTP id p25mr18395605otq.240.1607453331125; Tue, 08 Dec 2020 10:48:51 -0800 (PST) MIME-Version: 1.0 References: <20201208172912.4352-1-hadess@hadess.net> <3fcd56e8b875fb3d4ed6d58ad150e4b054d875ca.camel@hadess.net> In-Reply-To: <3fcd56e8b875fb3d4ed6d58ad150e4b054d875ca.camel@hadess.net> From: Luiz Augusto von Dentz Date: Tue, 8 Dec 2020 10:48:39 -0800 Message-ID: Subject: Re: [PATCH] Bluetooth: L2CAP: Try harder to accept device not knowing options To: Bastien Nocera Cc: "linux-bluetooth@vger.kernel.org" , Florian Dollinger , "An, Tedd" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Tedd, On Tue, Dec 8, 2020 at 10:27 AM Bastien Nocera wrote: > > On Tue, 2020-12-08 at 10:09 -0800, Luiz Augusto von Dentz wrote: > > Hi Bastien, > > > > On Tue, Dec 8, 2020 at 9:36 AM Bastien Nocera > > wrote: > > > > > > The current implementation of L2CAP options negotiation will > > > continue > > > the negotiation when a device responds with L2CAP_CONF_UNACCEPT > > > ("unaccepted > > > options"), but not when the device replies with L2CAP_CONF_UNKNOWN > > > ("unknown > > > options"). > > > > > > Trying to continue the negotiation without ERTM support will allow > > > Bluetooth-capable XBox One controllers (notably models 1708 and > > > 1797) > > > to connect. > > > > While the bellow traces looks fine we need to confirm that it doesn't > > break the qualification tests e.g: > > > > L2CAP/COS/CFD/BV-14-C [Unknown Mandatory Options Request] > > > > =E2=80=A2 Test Purpose Verify that the IUT can give the appropriate err= or > > code > > when the Lower Tester proposes any number of unknown options where at > > least one is mandatory. > > > > Afaik it should be fine to continue with another round of > > configuration given that it only expects the error 0x0003, but we > > better confirm PTS doesn't expect a L2CAP Disconnect after it. > > I have a Windows machine, and the PTS dongle. How do I set up the > qualification test and run it against the Linux machine before and > after the patch? @Tedd: Do we happen to autopts working with BlueZ for L2CAP tests? Or perhaps anything that Bastien can use as a reference to test his changes. @Batien: We would like to have autopts (https://github.com/intel/auto-pts) to handle the qualification but there is still some work pending in order to enable it to work with L2CAP. Ultimately we could even attempt to integrate autopts on CI to run it automatically, but in order to do that we need: 1. We need to emulate the PTS dongle (USB emulator?) 2. Run a Windows VM on CI, attach the emulated dongle to it and run PTS on top (not sure if github actions do allow this) 3. Identify what tests need to run e.g. L2CAP changes should trigger only L2CAP tests --=20 Luiz Augusto von Dentz