Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp960651pxu; Wed, 6 Jan 2021 08:46:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRWhv0lc/YluM4grLG3tWR4FqTclVv7wNISnfqt0is+J0qdUyiO6m2LHh/BIpdyWu80CMR X-Received: by 2002:a17:906:2358:: with SMTP id m24mr3352412eja.198.1609951580378; Wed, 06 Jan 2021 08:46:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609951580; cv=none; d=google.com; s=arc-20160816; b=J6LZUhEpcnXSI3af+yvuPtVndKdBOB5dWWyquKOQWi3Q8b24LTIwt/z3G/40AewuH1 OfPmEhOIViWF9JW/consSv3MXVlKWZCcDWO0NLG8j3V54cKwzbBTNvlVtHRR0M0pGMmh gHNb7J62MtgZOQsmk38eGjgpuUglHcOIBPWzkeukga++mPUsLaJJvlJTgCrui+w6CMMV 5r9PllrhiCqvhnj25X0JFL1kbtOK8njVCbY/NK8eah1GRHU4HDbaxHB/lyuuhEiS/pHS DGg+78qrOkEFxQrgQNGBY79zm3GMK/o+7LDfLUExJeOLmQb8elUL8tchraYrF2mlwYA3 FiXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=hIStfbOSBGCBzu1mc7Mm7zGO3zeXQ95jBxZs/pKO8Ug=; b=gSj+kVVRDQQFrvw8mGaGW0HzhHknHntGD0/50qPJ7UWsL+DsBvxEtUfpsXsBClRutx sVojxMMOTeGFhFNfnVcso/a8ZCiyuUlZ/VgoHgCI6FIev5wnJWtc7rpG5aVRy2Ht8RsL XBkycKaD5tgIkE+mhufOb1PIZ2vIp7De/s94jfhIsx64Zccz2iCmp0oHyY+pcT6iRv4Z z/5QKV9MmCpJOMkOU9iA9AN7abihj1uFlEyRJiyWo/OewnutM9K1nairOwUK3nlCacz0 CnVWW7/Dw7wYnjxacGUdSWo7oWG/l1He5lTg7XRLsi/FSY/HKyuzEi2rjvUdh5J2kvcb iRTQ== 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 m12si1064067ejr.608.2021.01.06.08.45.41; Wed, 06 Jan 2021 08:46:20 -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; 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 S1727471AbhAFQnO (ORCPT + 99 others); Wed, 6 Jan 2021 11:43:14 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:58563 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbhAFQnO (ORCPT ); Wed, 6 Jan 2021 11:43:14 -0500 X-Originating-IP: 82.255.60.242 Received: from [192.168.1.150] (lns-bzn-39-82-255-60-242.adsl.proxad.net [82.255.60.242]) (Authenticated sender: hadess@hadess.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 22AD9FF806; Wed, 6 Jan 2021 16:42:31 +0000 (UTC) Message-ID: <20346dac6bd4c7fa6642b5516d89fdb275ed4990.camel@hadess.net> Subject: Re: [PATCH] Bluetooth: L2CAP: Try harder to accept device not knowing options From: Bastien Nocera To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" , Florian Dollinger Date: Wed, 06 Jan 2021 17:42:31 +0100 In-Reply-To: References: <20201208172912.4352-1-hadess@hadess.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2 (3.38.2-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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] > > • Test Purpose Verify that the IUT can give the appropriate error > 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 tested this today using Fedora's kernel-5.11.0-0.rc2.114.fc34: https://koji.fedoraproject.org/koji/buildinfo?buildID=1664670 And a local build using the same source kernel with this patch on top. Both managed to pass the test without any problems. I'll send the results of the test privately to you and Marcel. Cheers