Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1741513rwb; Sun, 6 Aug 2023 01:31:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl6O3oEMCUfW7/frwHbkkNgBg6PvW66Dc65HIQ+3InuryPqmTCwcovn0Gtqu/OqYFinUop X-Received: by 2002:a05:6a20:6a0c:b0:13f:cd07:2b40 with SMTP id p12-20020a056a206a0c00b0013fcd072b40mr8363260pzk.3.1691310697936; Sun, 06 Aug 2023 01:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691310697; cv=none; d=google.com; s=arc-20160816; b=sURcqC2t48bCqkcPxcEcTc1SdvU0jvnYb47i13gp62UbvnG3NlTa1bMc4KCTYRHW+X RaBYqJfobs0sW3K4eIp3JTJC0FX0Jfkx4mFijLZQYIU7GzmJZ4mHNhEEkcJNd7geSfIz 8yPbv4dGMHQnBXtlt8RscfIHNzllKV+DG5zgqfL1d/wOGJyLuJuBbQ3odeRZZ7drMGa7 NMhEVE02MmFJ9yzrBzvvCpNSj2BHbmI7WOM/Os8nGyhYrsZZB4Bfn4nXJ7IhPZwv4z2y CvM4QI/GD27Tj5BPXNXuBXHVhnBWGMG9iNz8wwYML9gIH1qy7VDcNB5ZbXEMYJrSF5w4 PtRA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=L8LIK8Fu0/zVJT/CZVS1ttUz3gAb8D8U8YN7LnPrWsM=; fh=Jg5b3SlU0kriz7dG9TxlX0lcLkpuhdKAkKJU/Cg3tjc=; b=ZCOoBBl/yvQeOFQVrtElQKeNnH1+J6pSAsWXx3sqCUXyuTopLs4KYMIedRktGorqhM na8XEAN49l8wVvOPpy6cskM04mnTEDoQh07brw65yt0Tf3TOVSelDMmYg/h1aQOz/9ZL HKFiSocKlXOy8DknoTlWrf2JYOJgr2E21JLzrFhe9adWP5Q78t3d2mPk+7cl1sES8dwg 8Mt0uy+59kP62FOwH726+qz/LW1fRZ8tW8Vf7wKLaqcviM43TASapyfoFkYIaxAlyJAS ToNzKo5eZ6FHJ4ZARqx7QJzg+NePw4G4vO8oS6exC7AXNnWCfDaqkD7MbyQdYKqgiZLt 5tyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@streamunlimited.com header.s=google header.b=aqB6cmLH; 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=NONE dis=NONE) header.from=streamunlimited.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h69-20020a638348000000b0055c3e6ada36si4101570pge.354.2023.08.06.01.31.24; Sun, 06 Aug 2023 01:31:37 -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=@streamunlimited.com header.s=google header.b=aqB6cmLH; 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=NONE dis=NONE) header.from=streamunlimited.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjHFIBm (ORCPT + 99 others); Sun, 6 Aug 2023 04:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjHFIBj (ORCPT ); Sun, 6 Aug 2023 04:01:39 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B1D1FC4 for ; Sun, 6 Aug 2023 01:01:37 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3175f17a7baso2571989f8f.0 for ; Sun, 06 Aug 2023 01:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=streamunlimited.com; s=google; t=1691308895; x=1691913695; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=L8LIK8Fu0/zVJT/CZVS1ttUz3gAb8D8U8YN7LnPrWsM=; b=aqB6cmLHXAUBLsGa5B2y72G8pDjBu3f1LcXHw6eEd4Y68NGldat1eNdVIR0kwWRQKI yZJpZI5yTw3esYLaFooO9ujP7grnIE874NyTDI7Owvqf9uA/8IT85QH6s7e6bhnwK7Xm ylUvZCwTkyb2M+sxZlGGa6Bxkv4WLhwzRIC8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691308895; x=1691913695; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L8LIK8Fu0/zVJT/CZVS1ttUz3gAb8D8U8YN7LnPrWsM=; b=GfUi/WSlJHgpwUZomrz+Ns31DsKO7rMikHZnPzkyVsWNqAGGfxUBUgYWznvqMmwoNH B6xxOphJcp9V1vwTjbO1Irq9YhQWcJmYlW2oUKJt8d16xAFgEmDemfWqN9fXFHvKVqUS AgSd2w3N7SJght/e9VwQX9giSRf4AqwngJc0ZioJyCfD5KHGOrs/p5UyUeZ3YFD6h1ns yrT13yu0xv12abRWL+FDk+3hcAYFAT+ksvYsfBTp8qcy0TVWYHFB7vU4OsiSDp6Wx+8A 3RyxaWyGEBVuuGnl/EZ/FqnF+3G8PtlE2BxtpyiRLOV32kNUSNp2OUal8aI4J2DPpXpQ Kwug== X-Gm-Message-State: AOJu0YyHmqpB6eQhJfSc/zbs5X8xYeFEYJInP9c7642KIxPZ9sQlMR2M afw5sRNGZDfgU+myyFq+zMiXhAJOvZoODLVgtuk= X-Received: by 2002:adf:fecc:0:b0:313:ee2e:dae1 with SMTP id q12-20020adffecc000000b00313ee2edae1mr3562198wrs.18.1691308894950; Sun, 06 Aug 2023 01:01:34 -0700 (PDT) Received: from Legionbuntu.. ([2a01:c846:10c0:200:9bf4:d5f:8c8:5ad6]) by smtp.gmail.com with ESMTPSA id u7-20020a5d5147000000b0031437ec7ec1sm6974156wrt.2.2023.08.06.01.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Aug 2023 01:01:34 -0700 (PDT) From: Simon Mikuda To: linux-bluetooth@vger.kernel.org Cc: Simon Mikuda Subject: [PATCH BlueZ 0/2] Report proper error on connect Date: Sun, 6 Aug 2023 10:01:07 +0200 Message-Id: <20230806080109.1639693-1-simon.mikuda@streamunlimited.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 When we connect A2DP profile and remote device doesn't have our key (e.g. was deleted) we've received "unknown" error. These patches add mapping to "Invalid exchange" error which is returned in this use case as "key missing" error. Simon Mikuda (2): error: Add "Invalid exchange" mapping a2dp: Expose "Key missing" error profiles/audio/a2dp.c | 1 + src/error.c | 4 ++++ src/error.h | 2 ++ 3 files changed, 7 insertions(+) -- 2.34.1