Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp118471ybl; Tue, 28 Jan 2020 19:57:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzLFjiJ+AFTYy86FxcMklal3u6bspVj4SA4PspGnww9ZjlFwCzD98em2uC5c386G7oK5gKT X-Received: by 2002:a9d:7c9a:: with SMTP id q26mr6550195otn.206.1580270251554; Tue, 28 Jan 2020 19:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580270251; cv=none; d=google.com; s=arc-20160816; b=sJNV4vPI30DuUHw8bWsc00tjfUZEnx0FHxwoBcRZWhsd93sy9ZoUjFECY+7WYEcrSH lJQ2Cus0GdOHxvLhcxmpQucjANB7IFfWGzMQ5fnvRVwYBGiLh0fF+00fxyvjdmgWitlQ /QewgEUhI+CVZlU0c/bdHzd2siJr3bj2YjX4RkXofW3bZAahIKREOn9KE0m2N4UMrkwT X+SzWsaHhB5B9cay6xIDDpI4xY3tj1nfh4YFYDfU1NJtMYv70R0+b8Ih0nPmeawbrLP8 bboX223B97w0knMxaORXn/mPKzgxFEMfs41MdzTK4W59g896UpfRWaZLyfGcFIQvWWm0 rr3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=zrvg98NbmRbCqWSWivFGFAWh8aF83Gn3Q+ZJHktNyjk=; b=quZwvbaBNOUagq5bpvRqOsm9EzirrjRY2fpWLDKIWYPT8w2vwUhShPsclkoIa7/0+6 n8L4qvhLUdY3mdqMHpjvEbXT90usc16nJYP7Hg7bx8pxaLRc0fquVbImGG8X17O4qvmo qz8WJ9lNElDvXt6cCZxwqFdBnwAUmArazQnReTqyYycKdX/GBiQzovk4SE23fjha1X6h M+QmTAkXAdqGHZjWyRAyYBHBMCWsl97GkjrGiUB6cngSssN4kXaH1JqDmKIIt22MalZe 1jc9g1OweDKHSj1PKozO07FZThKyXJtv9vA/YIU8f1819hanhGxCa+PjIbNrzRD5WuSq 0bbA== ARC-Authentication-Results: i=1; mx.google.com; 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 s17si443609otr.320.2020.01.28.19.57.20; Tue, 28 Jan 2020 19:57:31 -0800 (PST) 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; 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 S1726338AbgA2D4S convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Jan 2020 22:56:18 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:54240 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbgA2D4S (ORCPT ); Tue, 28 Jan 2020 22:56:18 -0500 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 22F57CECE7; Wed, 29 Jan 2020 05:05:37 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: bluetooth: If unknown option in L2CAP Configuration Request is a hint, Bluetooth stack responds with "Command Reject" instead of "Configuration Response" From: Marcel Holtmann In-Reply-To: <3020b8d0c7d39428aec573153b3c3414213be7ce.camel@peiker-cee.de> Date: Wed, 29 Jan 2020 04:56:16 +0100 Cc: "linux-bluetooth@vger.kernel.org" Content-Transfer-Encoding: 8BIT Message-Id: <89F234DA-089E-4F45-9D32-7A09CC52E8CD@holtmann.org> References: <3020b8d0c7d39428aec573153b3c3414213be7ce.camel@peiker-cee.de> To: Konstantin Forostyan X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Konstantin, > It seems that there's a bug in Bluetooth stack of 4.20 kernel. I > discovered it during Bluetooth qualification tests. L2CAP/COS/CFD/BV- > 12-C [Unknown Option Response] test fails because instead of > "Configuration Response" with error code 0x0003 "unknown option" the > Bluetooth stack generates "Command Reject". > > I think, this happens because the tester (Bluetooth SIG PTS) uses hints > as unknown options, and the Bluetooth stack has special handling for > hints. > > I made a small patch in order to overcome this problem. Please confirm, > that the patch is feasible. If not, please suggest how to fix the > "Command Reject" problem. is the limited to 4.20 kernel or does it also happen with the latest 5.5 kernel? Regards Marcel