Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2468862rwl; Thu, 13 Apr 2023 06:58:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YtDW5ZISQXsaI3bGJqf4utztQY5OCG2gChTI6xra68v5HheqUFiKc+CMmbDFT/2do15Vy1 X-Received: by 2002:a05:6a20:bf06:b0:da:4d25:8fdd with SMTP id gc6-20020a056a20bf0600b000da4d258fddmr2070240pzb.38.1681394303312; Thu, 13 Apr 2023 06:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681394303; cv=none; d=google.com; s=arc-20160816; b=XtM/SJwhq3O2XOa5Y/okEbB4voPgTCTkkuXDUO8vDJt3eNMvK7sMDR6pDbjObp1o4+ wdNcfKzX5DjSi0nkbA7Wy0Cqh9n+EkcF0pMH+inSQCwtMnqxkSi77LQUYzFdnSS6szWy 5s0bMGTgwDAgr6+t2v7xYqxA/4toDnX3cCluUyiIrZ4i3kqcP2GzSe7nF8Lac4KpwHLT hmGqjYOOxL/C6jkr4eFVB0gzUo6R+VhwT9I+GbsqCUAI7vZxftJf1AlBHwhDq5rgwgti pPm+JNaKovoG4hK5agBGw6Imm6V8hOaPOTZODzrE5cymLQ1iq1oHK3vsVDK+ilkVRe7b c9fQ== 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=QFuIG0J+LneGq+4r0DiD7CEEt5f+B8fcONqdd9iEtqA=; b=VIklLN558EehZs4ullTUebxZ11mgsiYCHJkT14WwNggiBGI5Vzx+JBP7H7kWy5YVjN ppfVVj/MwIahw7iEYDQW2vV+2BjBUWEBYUv6YKxVLM0VX44yYFBKJpq99cM92a+SD9n7 j1fxKhZcKwIiOgkItayISS+5ywBDDxIDqObSjh8MBC3rDK6ADIh+eTz9l2WQFAplkSiJ g15qSrBNkqJYJDcCwv8P6z7PJb7EaB+ZFBYYgC8ZIMGDfxjWvB5Ns+10Cvs769OZkGkb KR0tRsVuZfCXYplYN7Qh4EeLgeolksrRRuovWAX2Tn7vfv0fr9uIb/6twYPsDAkn81Se zoHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kY4FpfQw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 84-20020a630357000000b0051446aaead9si2267014pgd.105.2023.04.13.06.57.58; Thu, 13 Apr 2023 06:58:23 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kY4FpfQw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbjDMNz0 (ORCPT + 99 others); Thu, 13 Apr 2023 09:55:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230416AbjDMNz0 (ORCPT ); Thu, 13 Apr 2023 09:55:26 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A4A19A1 for ; Thu, 13 Apr 2023 06:55:24 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id g26-20020a4adc9a000000b0053b9059edd5so2237896oou.3 for ; Thu, 13 Apr 2023 06:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681394123; x=1683986123; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QFuIG0J+LneGq+4r0DiD7CEEt5f+B8fcONqdd9iEtqA=; b=kY4FpfQwu2hqLLp9+YR4TGXWgYC0jn6v2x58o34K7W7T85eMTnTKmkU/Lt3l1FrOmn 0xdaqIhIXfuP5sk1s6o3ZxTLNwYCfdOWN0uiAsXPcsq0zMoqDXqMJthrPNVghGPYLj5u FyAs8tN/OUX6+c3s9EQc5lrlyF2vZiSCSimvvXg5cQtJf/HrGc4ngfIl/sU0FW0yDBbW wNyQty8AlgrgfLez57tnxwy364TW1bYIyCwgejLqSN5nDK57BYUyxB/+9QIYFlYTH+GN bZyuEMwgjw/IIQO3UFvdXPFfmYQcgfpTBWyA20eWedDJOuxXkY80/8i7csAAq3q8bmNQ FHHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681394123; x=1683986123; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QFuIG0J+LneGq+4r0DiD7CEEt5f+B8fcONqdd9iEtqA=; b=ZN6+pOBPwRem9TedBCu0G6a4lD3r/UDsVS8K3SiM1sIv6mnOX3HsLW12Fl8A9HkU1N sGKfyV8oD0fsId3SP3Bcpgq1P4QtH3ItxBTJFayRmW+dEAASg5mtyQOUqlVNZj8kbYnM AF2jmbbE2/e3sEhEdW0qjMk8vCoCpGnMdMur5/S5rz+RR1WaINyUPDQ0lsc7M34DV/4+ X6LjgDLliIQvgSZ6R/e7ldi5k8zRCWpJ/2jM3i8x3Ch6lSlwR6XsR/LGO5TKbkglfqYY pt5WBP4FUGkB44419uTE8QlagPpMYFku2XSeCoS9v9f1DLIVQj2KwEUBSGzhJsopgH9G 82kg== X-Gm-Message-State: AAQBX9fAndaMxcK4ISysZBSN+5jw5od8sU1gTCWhxU+Fx5QQfFxVrBfT GAvwdrNn2D9qnFHUDo7UdHXgVo82nJQrDwwoz/w= X-Received: by 2002:a4a:e691:0:b0:541:b832:6ce0 with SMTP id u17-20020a4ae691000000b00541b8326ce0mr624778oot.0.1681394123348; Thu, 13 Apr 2023 06:55:23 -0700 (PDT) MIME-Version: 1.0 References: <126c5bce-6496-4744-9101-6a61f0fff106@app.fastmail.com> In-Reply-To: <126c5bce-6496-4744-9101-6a61f0fff106@app.fastmail.com> From: Raul Cheleguini Date: Thu, 13 Apr 2023 10:54:47 -0300 Message-ID: Subject: Re: unexpected SMP command errors with controller ATS2851 To: Christopher Snowhill Cc: linux-bluetooth@vger.kernel.org, Marcel Holtmann , johan.hedberg@gmail.com, luiz.dentz@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 On Fri, Mar 31, 2023 at 2:50=E2=80=AFAM Christopher Snowhill wrote: > > Would some pcapng logs be useful? It appears this device flags some comma= nds as supported, while indicating their entire feature sets are not suppor= ted in the local supported features bitfields. Or that's as near as I can g= uess. > > First is captured from a generic driver that works, the latter is capture= d from Linux 6.2.9. Included in the working capture is the beginning of an = exchange with my Sony headphones. The latter stops logging after the first = failed command. > > https://f.losno.co/bluetooth_ats2851.pcapng.zst > https://f.losno.co/bluetooth_ats2851_broken.pcapng.zst Hi Christopher, Thank you for sharing the pcap files. Based on your comments from another thread regarding this adapter, I suggest that you apply the following patch= es: [PATCH] Bluetooth: Improve support for Actions Semi ATS2851 based devices https://marc.info/?l=3Dlinux-bluetooth&m=3D167846197021176&w=3D2 [PATCH] Bluetooth: Add new quirk for broken set random RPA timeout for ATS.= .. https://marc.info/?l=3Dlinux-bluetooth&m=3D167957918920723&w=3D2 [PATCH] Bluetooth: Add new quirk for broken extended create connection for.= .. https://marc.info/?l=3Dlinux-bluetooth&m=3D167957998621276&w=3D2 You would end up in the situation mentioned in this thread, and you could resume your tests from there. I haven't had the time to experiment with SMP= yet, so any assistance would be greatly appreciated.