From patchwork Mon May 15 21:05:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 684603 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B5CDC77B7D for ; Mon, 15 May 2023 21:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244765AbjEOVFu (ORCPT ); Mon, 15 May 2023 17:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236784AbjEOVFu (ORCPT ); Mon, 15 May 2023 17:05:50 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B32E81991 for ; Mon, 15 May 2023 14:05:48 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-64ab2a37812so691503b3a.1 for ; Mon, 15 May 2023 14:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184747; x=1686776747; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=gnB5yv9oZNhLgZuBAf3kZHHnyPDEbPfDsi/R/yytOW0=; b=NmScp0by6qPoT6YIURRHO+Ruo2K6rs4p+CScfA1zXNsno3PBOfE9ZGQlbiYJ3baCIz KqVq+Fav8AU3P11qqIBm3dQCg2kuDGHKglhntqvqIQ9PBGtDPjmXFHYg/HYghIPdSOVR o6Kf2QwsxhQKp03KacYoMFp34uXZdgLmdrCyIdL7V4yC2mirzBLHul1DVTp3Bz/AR4V0 kBp8wOfSQ6XV4w/NEEcMa7GRcsKOi7Wm9eIzJ6Gucx+qUg4MuFN+mTuoDHlprSrkNuEb VsbNEps/pwxa4SsFvwGbkg8BW8f3VkLPEYzYkxRPEtM/CegtKZsgr6CtysLgCgpLU4Gt rjuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184747; x=1686776747; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gnB5yv9oZNhLgZuBAf3kZHHnyPDEbPfDsi/R/yytOW0=; b=hmu1Z0TDTKk7fQ0aC+C/4twecdAuT0VuYid6gvAtEu9+xTSsdKnteJdWILjr07wNE7 O1K9mLeVaJ7h79MSLEpwzu+ZssBl/JvTv1jFyYHQpFBIhcJJVv8ZZXlqxKBbC26ciVFF CnXtele8/d7zAoTAiQj8/A12ZNtmgyX7Zkweif/NcKSWc/KNHmBGjaAebxWeqMIdfqNw zsA9rjuDoRkQG23UCFS5JPNB26b+PrgqquDicYXX+5QM2D/PQhc8FwXpzpU8f+AKZYrU tnYHJ8wZIO+RN3jJmspwC3IJp3D3oS9x1aPIZvn2mX9lW6UeIRldWmic1NkUI24e3Mik SGow== X-Gm-Message-State: AC+VfDwr4cY3gBmEHFQWsawC5xukR8l+HuEr7D6iaaLLgYsVFBV+1Gp8 /IcEwU8HPsMwN1cG1a1vwc91CKMHuSQ= X-Google-Smtp-Source: ACHHUZ6U0bNW6pdzoRzJVKS9P5BuTYUXVFbNKENefkRD1oq2x5696J9unHagftEF5HsB/COIN1otng== X-Received: by 2002:a17:902:e80b:b0:1a9:57b4:9d5a with SMTP id u11-20020a170902e80b00b001a957b49d5amr46763118plg.31.1684184747093; Mon, 15 May 2023 14:05:47 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:46 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 1/7] profile: Add support for experimental flag Date: Mon, 15 May 2023 14:05:39 -0700 Message-Id: <20230515210545.718701-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds experimental field to btd_profile so the plugin can indicate drivers that depends on experimental to be enabled. --- src/profile.c | 6 ++++++ src/profile.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/profile.c b/src/profile.c index e1bebf1ee19c..ea188f36b6dd 100644 --- a/src/profile.c +++ b/src/profile.c @@ -775,6 +775,12 @@ static struct btd_profile *btd_profile_find_uuid(const char *uuid) int btd_profile_register(struct btd_profile *profile) { + if (profile->experimental && !(g_dbus_get_flags() & + G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) { + DBG("D-Bus experimental not enabled"); + return -ENOTSUP; + } + profiles = g_slist_append(profiles, profile); return 0; } diff --git a/src/profile.h b/src/profile.h index 6827f848148c..6871f2f0d7d8 100644 --- a/src/profile.h +++ b/src/profile.h @@ -28,6 +28,11 @@ struct btd_profile { */ bool external; + /* Indicates the profile is experimental and shall only be registered + * when experimental has been enabled (see: main.conf:Experimental). + */ + bool experimental; + int (*device_probe) (struct btd_service *service); void (*device_remove) (struct btd_service *service); From patchwork Mon May 15 21:05:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 682063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48B73C77B7D for ; Mon, 15 May 2023 21:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245319AbjEOVFy (ORCPT ); Mon, 15 May 2023 17:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236784AbjEOVFw (ORCPT ); Mon, 15 May 2023 17:05:52 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D221991 for ; Mon, 15 May 2023 14:05:50 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5307502146aso3952586a12.1 for ; Mon, 15 May 2023 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184749; x=1686776749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=wBo++OSugDX16NBEk0VGJUq2Te47F5j23MhSdO7vJs0=; b=LOBiyrbojjsL70op0RarW2KQoClfbNbqpVBm7q0Hgnd5hhS4li+/Ed3y/1ZYHE06jC J5q2OGKD5uWrW8J8jGfTuwIvIqn1NgPODbeOsTdulCjLTQN7X5K3LQoMyEaaexdpJssU 273bfhOLmzhbmmnluvvJvG/AzkZ/LSSyCYLS1gppzMXMlJiRN2ddFpgHEq9SJK4U1W1D DWtNMAOD+l7mZHpQia7eF3xjZmPDMPQ5EpfZcWb3awFKx7nfVvkKUQwygjdjs+6o8dyX ivZtaevoYamVIMsW2ieGftoM5Qi/f2AOS1BgKm+vd66eGfHVV8UVNVSqwU6ayRpV4zcd Yjng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184749; x=1686776749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wBo++OSugDX16NBEk0VGJUq2Te47F5j23MhSdO7vJs0=; b=gJFd+jV4P7KZWhbfpah50zyniQ0mTWzMA4jYCtXy7r2YaYqnO/t78NDKoyxTxMWd+X /KWkFeVv8ZCF56pmFUpxu0IA1ulrjsSqemWdRRZ0GKWLatFBmiQ5W9AlboODEuAX4w/n 8vUDFlgC7VXHsUu9OqK7bl0AvWFd005C27A6OF1G+PBZCajrSDxz8Z6YGZydCSBL6Cxg y9nA0BQeaEkUf4ab7KJu0SqsIF+5086BuZnvDceZ2GKlnsc1l25hhu+RIkORX//g9wBd zwe5R3eDmnGx2YvH3sNxlWBqB1E3ylPf2fuFtMIzl5bfWr4Q3fZd5cQtHgH/q6/CGR7F 12lg== X-Gm-Message-State: AC+VfDyiTn8EFe1x9wQ1p40bUU6jrzDYfDaCZx7ve8R0E2bbt/4/Z9BT m/utlQCWD866FWrrnSPHyN7iacablIo= X-Google-Smtp-Source: ACHHUZ4zmYypqBiYhKcKQZojIyFUnOT37mdikDbvVNOoAUVYo3uhSyyxaxbbUOAJxYfSKWXrS4SISQ== X-Received: by 2002:a17:902:f551:b0:1ae:ccf:6b40 with SMTP id h17-20020a170902f55100b001ae0ccf6b40mr8720617plf.13.1684184749216; Mon, 15 May 2023 14:05:49 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:47 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 2/7] bap: Mark driver as experimental Date: Mon, 15 May 2023 14:05:40 -0700 Message-Id: <20230515210545.718701-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This uses the btd_profile.experimental to mark the driver as experimental. --- profiles/audio/bap.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 8f12fc410f67..1a543a9ce99b 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -1354,18 +1354,19 @@ static struct btd_profile bap_profile = { .accept = bap_accept, .disconnect = bap_disconnect, .auto_connect = true, + .experimental = true, }; static unsigned int bap_id = 0; static int bap_init(void) { - if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) { - warn("D-Bus experimental not enabled"); - return -ENOTSUP; - } + int err; + + err = btd_profile_register(&bap_profile); + if (err) + return err; - btd_profile_register(&bap_profile); bap_id = bt_bap_register(bap_attached, bap_detached, NULL); return 0; @@ -1373,10 +1374,8 @@ static int bap_init(void) static void bap_exit(void) { - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) { - btd_profile_unregister(&bap_profile); - bt_bap_unregister(bap_id); - } + btd_profile_unregister(&bap_profile); + bt_bap_unregister(bap_id); } BLUETOOTH_PLUGIN_DEFINE(bap, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, From patchwork Mon May 15 21:05:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 684602 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 344E7C7EE25 for ; Mon, 15 May 2023 21:05:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245341AbjEOVFz (ORCPT ); Mon, 15 May 2023 17:05:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245274AbjEOVFx (ORCPT ); Mon, 15 May 2023 17:05:53 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A3FE49F9 for ; Mon, 15 May 2023 14:05:52 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1aafa03f541so129093575ad.0 for ; Mon, 15 May 2023 14:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184751; x=1686776751; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FaiRL7R9hAB8QTE8OFJBjT36cb1wdquZAEQfKkG1Kg8=; b=McBFc+R5/zUD68wMabnB9Cv5xZ7+BGSE21U6aRXKd/QCSCR2BQ/Bz25SdXpx7ufeKO DDV15rxfCJfoCcnaVc98qQwC0jV9C0eQPZjHwRAv7krdH04qOkI2vv5O7IlavagUQb4M 9xV6WB/1JNt4V93z8RBnsvYIuxzh9jtb0CENTt49Gm04JemF9h5LblBHh+JaILoYW+Lr ah4TyFejiDtK64Pp5RWiv/A4mDEHhFFbw5L0m+vHAgEGFmaMdfxA0SpLX0jIYgiLwCZW r3oggYzmS65k6wnOEy6iISC8BF7asDdsD8nYP5VGUiogu+27okHBYvaEnDNEi1+btYpq 1Vew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184751; x=1686776751; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FaiRL7R9hAB8QTE8OFJBjT36cb1wdquZAEQfKkG1Kg8=; b=Kxfu8Qm+XGoSlSKXnau0WI0cGFGjURedGpGxy0COVyGPqORtphaOcslDuwoyMEwDK2 Mohx3N+UFAVZKv7A+PxxTW+CXHPuy5pAuUl7kp3mtQ/C0JpPqTTxLZ140bzdWsu80A8G tupHl2F3l4S8CKjLquX9vgUTbyMZ+XKfZ0BrIpWqa7ZX+L0/IUFULUPtcxJ/ysgYiFdX ShNAsrBK+Pbtcz7XnCta0jlwIuz9Xkne3ycWHLgrlJvy5Vi0SmkZ2rCfYTJ9FWxXMMNb AUYmYwDTjN5b323yPkXWxv1bfv6pZvh0oWB2pRJK8QZS50e2n0IIj6KZ6IuHdDxXLpM1 9Kfw== X-Gm-Message-State: AC+VfDwwOujrhIVQeC16lEzdD5iYW1y3FKK5iqngv5OsQHhodZpnkfS9 yrQAISmPSKom0SuU2G1YnlizWpQxqnI= X-Google-Smtp-Source: ACHHUZ44GSID+NCqiugMDi5wzt1z+l5UoY9RteKlw++kj9ET9Jy4yG4DqMmteH9xd1u2wtb4ep68Sg== X-Received: by 2002:a17:903:338e:b0:1a6:6fe3:df8d with SMTP id kb14-20020a170903338e00b001a66fe3df8dmr28898503plb.8.1684184750840; Mon, 15 May 2023 14:05:50 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:49 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 3/7] bass: Mark driver as experimental Date: Mon, 15 May 2023 14:05:41 -0700 Message-Id: <20230515210545.718701-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This uses the btd_profile.experimental to mark the driver as experimental. --- profiles/audio/bass.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/profiles/audio/bass.c b/profiles/audio/bass.c index a7fcc9718d56..fae7fe00412a 100644 --- a/profiles/audio/bass.c +++ b/profiles/audio/bass.c @@ -276,18 +276,19 @@ static struct btd_profile bass_service = { .device_remove = bass_remove, .accept = bass_accept, .disconnect = bass_disconnect, + .experimental = true, }; static unsigned int bass_id; static int bass_init(void) { - if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) { - warn("D-Bus experimental not enabled"); - return -ENOTSUP; - } + int err; + + err = btd_profile_register(&bass_service); + if (err) + return err; - btd_profile_register(&bass_service); bass_id = bt_bass_register(bass_attached, bass_detached, NULL); return 0; @@ -295,10 +296,8 @@ static int bass_init(void) static void bass_exit(void) { - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) { - btd_profile_unregister(&bass_service); - bt_bass_unregister(bass_id); - } + btd_profile_unregister(&bass_service); + bt_bass_unregister(bass_id); } BLUETOOTH_PLUGIN_DEFINE(bass, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, From patchwork Mon May 15 21:05:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 682062 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4999BC7EE26 for ; Mon, 15 May 2023 21:05:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245314AbjEOVF4 (ORCPT ); Mon, 15 May 2023 17:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245326AbjEOVFy (ORCPT ); Mon, 15 May 2023 17:05:54 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B54051991 for ; Mon, 15 May 2023 14:05:53 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1ab267e3528so95302095ad.0 for ; Mon, 15 May 2023 14:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184752; x=1686776752; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5cTAOIXAq0oIiEHGSrM64rKJl+f/1F4LAw7ra9PqE78=; b=sUiRiWJcY7gdqlkzlZJhUW+IU5ppuwqHnLAgH9rctVOCJkbkN5WmvAQmsgsihvIRPl D1uVKCnrfkPQqupc7oYFAGFhUHS+g95yjOdbCvVT/0KJBqg3UYKgCrDGqgPFB4KmxLV5 8V+fvQ5ruQI1oTUtZuAVaAQaOrtUa/bS/UVDwhFaK5rOrhgCzHEWFcbNZzCSosGgKHzx H5b/6o5M9dZx9pQlPcou7J0SPkCpJtUlDEFJtvGa+1dagW0UUi08Cx08Dp2cFk4aMUyW q950IJYr7nu1SzwDXfa7BytlUOOy5yAYL4fFDzkDHhCREb5KKlGw4W8tJLg5JGIbDUMf yQFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184752; x=1686776752; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5cTAOIXAq0oIiEHGSrM64rKJl+f/1F4LAw7ra9PqE78=; b=SthuUYOB35lzoQgevokiY+BKOWkAXZyEwyK8MjoyUp+op8fIkodNJu879FSug7uKQA jD3AXiivFhfrT1Kc4AyY6ZKq0vbExJFd1VwyaBTvOtX/eYPnIrDoMn6tOwtsF8j8JHx5 nDJVi7Mw5T36iDSnHJVecghrEq8pW5EsVywAXTdkMGQt++BdYCo4qt+MNUFsvzVz1FgL 2xSupaie3l3rCzC/hi2kLmMoUSGfQjFAiIfUgtGoEq27GwHoXpF6nb3g1Ref/pq81bHb LN6SVu0IHdlhr5Uc1eh3TuFo3ImTRG9jVToerPsR3DLrgaP1Jh/Vlm0n0vm12pUpe4cq oxhQ== X-Gm-Message-State: AC+VfDy+2L18j3UslfyYQT9iuMrwDznDOqR71fAOtliczy1LwkS6apug HRacP2P2J1VQo/gEdRfdMQbVmIpAYRI= X-Google-Smtp-Source: ACHHUZ5A/WL8T65QebNbFfDaa8iGiiKgT+/TxOuFZmxG919+NBEHeT488pw395qGuAirQIISTUy4wQ== X-Received: by 2002:a17:903:2292:b0:1a2:3108:5cc9 with SMTP id b18-20020a170903229200b001a231085cc9mr47532554plh.40.1684184752344; Mon, 15 May 2023 14:05:52 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:51 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 4/7] csip: Mark driver as experimental Date: Mon, 15 May 2023 14:05:42 -0700 Message-Id: <20230515210545.718701-4-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This uses the btd_profile.experimental to mark the driver as experimental. --- profiles/audio/csip.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/profiles/audio/csip.c b/profiles/audio/csip.c index c273c02b8e76..ec042afd54eb 100644 --- a/profiles/audio/csip.c +++ b/profiles/audio/csip.c @@ -334,18 +334,20 @@ static struct btd_profile csip_profile = { .adapter_probe = csip_server_probe, .adapter_remove = csip_server_remove, + + .experimental = true, }; static unsigned int csip_id; static int csip_init(void) { - if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) { - warn("D-Bus experimental not enabled"); - return -ENOTSUP; - } + int err; + + err = btd_profile_register(&csip_profile); + if (err) + return err; - btd_profile_register(&csip_profile); csip_id = bt_csip_register(csip_attached, csip_detached, NULL); return 0; @@ -353,10 +355,8 @@ static int csip_init(void) static void csip_exit(void) { - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) { - btd_profile_unregister(&csip_profile); - bt_csip_unregister(csip_id); - } + btd_profile_unregister(&csip_profile); + bt_csip_unregister(csip_id); } BLUETOOTH_PLUGIN_DEFINE(csip, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, From patchwork Mon May 15 21:05:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 684601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F298C77B7D for ; Mon, 15 May 2023 21:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245377AbjEOVF5 (ORCPT ); Mon, 15 May 2023 17:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245358AbjEOVF4 (ORCPT ); Mon, 15 May 2023 17:05:56 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814D049F9 for ; Mon, 15 May 2023 14:05:55 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1aad6f2be8eso122955965ad.3 for ; Mon, 15 May 2023 14:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184754; x=1686776754; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+Iobs+R2ddrlT8b4QQ65ACB2Nf3ufHdusbKHpv7a0ow=; b=X1BT4JLQBGCNnozOSNkyKpbor74MbEjRth7+dCZx3qk3ku1uz5DnrT/1NXwnZSPDZy xvMh5BVqWSEHj//iomNIAxkz1zjv+ExH4ncoXkbx6Po79KbTMoZrFkXzENgNM0Xkwdd0 KjhWvqv+/xZDPOizVgGMWROLaGxDHmchEMSCkHidN4UjRTzDBoLP+TT4hHJUpV2G8jum ijtSmBlHDLnzDQQgLfoLKE7964734SRucwBQgFlfCf+VSe5n9+usdJdnp3Xr+iNXFXIq WzdInORygpAlQ1WwokBjLeOfSnPA98OiNfpqX63vQPP/4Dt+QtRqLP2J/V267bxzO40z gykQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184754; x=1686776754; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Iobs+R2ddrlT8b4QQ65ACB2Nf3ufHdusbKHpv7a0ow=; b=KQ/MpnlR5UJOwSqOywJsRDWBgVNkzyGDDR259AuJgX1ouyiFfLk0mPDDQ9YcqooMA+ NHFfS5LeUXK28V2JjwSzfWecNVH6k+vR74kFqOjtzZD0X2ceoldGMb7LfKn1ojbo4kJj iTk10ebzhfKU7xwILm6UkA2r49CZELg8+6aCaPyv0X6ry+5i7/xS0ngOvmdNt2i/smxd f5AjGy/arCJVc5yxpetNLaWFAvmCbH2IhtsF+7/3atSxGGTgwNlVpPmArBwbGOhj3L4t I+oMBlWisb+D+WfnyOXMURmSVd2Wd5b2Cne7fd1mpSX1Vld6Hydi7MCcsSFhU/ZQL1Zb +H4w== X-Gm-Message-State: AC+VfDwVqtynaXsVMMaJ9PJPuNPA8UhVsETaWnqsAjXMV4qAMhpXm23a rtTOPqswRPbpq9Fkfvwj8N/5+9lVxlE= X-Google-Smtp-Source: ACHHUZ4+hkv33q/z3lrEkadAx7MWx/hursgOM49mzQ0jVJbZ3OREHOGbBTHLw3jcmkQ2IdmcBsqwOw== X-Received: by 2002:a17:903:41ca:b0:1aa:d545:462e with SMTP id u10-20020a17090341ca00b001aad545462emr48373840ple.13.1684184754132; Mon, 15 May 2023 14:05:54 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:53 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 5/7] mcp: Mark driver as experimental Date: Mon, 15 May 2023 14:05:43 -0700 Message-Id: <20230515210545.718701-5-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This uses the btd_profile.experimental to mark the driver as experimental. --- profiles/audio/mcp.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/profiles/audio/mcp.c b/profiles/audio/mcp.c index f3ea330f9839..b410b3d2aa03 100644 --- a/profiles/audio/mcp.c +++ b/profiles/audio/mcp.c @@ -403,27 +403,18 @@ static struct btd_profile mcp_profile = { .adapter_probe = media_control_server_probe, .adapter_remove = media_control_server_remove, + + .experimental = true, }; static int mcp_init(void) { - DBG(""); - - if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) { - warn("D-Bus experimental not enabled"); - return -ENOTSUP; - } - - btd_profile_register(&mcp_profile); - return 0; + return btd_profile_register(&mcp_profile); } static void mcp_exit(void) { - DBG(""); - - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) - btd_profile_unregister(&mcp_profile); + btd_profile_unregister(&mcp_profile); } BLUETOOTH_PLUGIN_DEFINE(mcp, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, From patchwork Mon May 15 21:05:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 682061 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04DC3C7EE24 for ; Mon, 15 May 2023 21:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245421AbjEOVF7 (ORCPT ); Mon, 15 May 2023 17:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245358AbjEOVF6 (ORCPT ); Mon, 15 May 2023 17:05:58 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F320A49F9 for ; Mon, 15 May 2023 14:05:56 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1aaec6f189cso90552305ad.3 for ; Mon, 15 May 2023 14:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184756; x=1686776756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=KjhUpj8uSuuQsuauzOhywl0XBpKd80yMyJQj1Ru8+Ns=; b=MMfbESzlWgG0kWeeSEWNWoWJ1hIW8etKdJYIbHiDhqCXcSTWv6P41AF7rbKvLZwJQn ES+dzELh9bZrZXmrsqe/iQ7SlxiuiscsPt7q/x2E4y/WeJmWGJ6QgmtLWcdMK7yCHDY6 93heTdkctg8L7bvsyLpspn4znAXfxfRTnopTxgSfLDNkHHORpsEv7rtMI07gpkxVRBnw /Ve1YhmQWf3PCUEtrviYB7sjoaH13nCK3LSgHAYXfjvqBpl+QMDlZXMxqFPUgWbY4qa4 kRS8J+iH+IeVRDrpZWtVwspMGrTg7fstrAbBU8pzIqP31LfWsYF8YjX44X7zwgrtV/oE e7WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184756; x=1686776756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KjhUpj8uSuuQsuauzOhywl0XBpKd80yMyJQj1Ru8+Ns=; b=O4KTTD+DA4Ru9e5TFSWYpQJK0QngfFamGb2SLb9hq4ZeCKkMXPJdIt8Y5t2ycZhjOI CBmU4gtSJNmxvkof2776jj4l4xg9UwPmu/g7THNJS17CyJyYIuTYcLW7BCK8XdaL6/L0 LmE6VLMVXpbFj7Cq4oNC5kzDSruttpefGjy5fU2YSBfPWwvdg2Dzm+RiRaD/aoN/DneF T66VanjOODb/0kOpiF+LeMfaLqXPDK3s4YCOWtUBPNSSaA05vMMVEM6laZbqj2HR4FmD 51XeMk3kqMiHzPF3uKBm3L4Fu9JszL9847rhsOJSwENn9mOYcAHK2kOpvktL13KI7mx3 yB/Q== X-Gm-Message-State: AC+VfDxSUIDed/lHoyv1m9sUJWZfxzVyrzv9ddUIri9o+ScPRfCXBvv9 2HaQA2TNosvbas++wAqbT0GWSCBdBC0= X-Google-Smtp-Source: ACHHUZ7VB/Kvz/PghhrperSvj7ZYaa/TgShi5zYmNsgyDzXdLYbFyqytCvwfxjK5mf1UwLfOdaDUjQ== X-Received: by 2002:a17:902:dace:b0:1ac:7e95:74be with SMTP id q14-20020a170902dace00b001ac7e9574bemr34628506plx.28.1684184755684; Mon, 15 May 2023 14:05:55 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:54 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 6/7] vcp: Mark driver as experimental Date: Mon, 15 May 2023 14:05:44 -0700 Message-Id: <20230515210545.718701-6-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This uses the btd_profile.experimental to mark the driver as experimental. --- profiles/audio/vcp.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/profiles/audio/vcp.c b/profiles/audio/vcp.c index b42b0a4f79dd..175275f2e977 100644 --- a/profiles/audio/vcp.c +++ b/profiles/audio/vcp.c @@ -289,18 +289,20 @@ static struct btd_profile vcp_profile = { .adapter_probe = vcp_server_probe, .adapter_remove = vcp_server_remove, + + .experimental = true, }; static unsigned int vcp_id = 0; static int vcp_init(void) { - if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) { - warn("D-Bus experimental not enabled"); - return -ENOTSUP; - } + int err; + + err = btd_profile_register(&vcp_profile); + if (err) + return err; - btd_profile_register(&vcp_profile); vcp_id = bt_vcp_register(vcp_attached, vcp_detached, NULL); return 0; @@ -308,10 +310,8 @@ static int vcp_init(void) static void vcp_exit(void) { - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) { - btd_profile_unregister(&vcp_profile); - bt_vcp_unregister(vcp_id); - } + btd_profile_unregister(&vcp_profile); + bt_vcp_unregister(vcp_id); } BLUETOOTH_PLUGIN_DEFINE(vcp, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, From patchwork Mon May 15 21:05:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 684600 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52BB4C77B7D for ; Mon, 15 May 2023 21:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245444AbjEOVGA (ORCPT ); Mon, 15 May 2023 17:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245437AbjEOVF7 (ORCPT ); Mon, 15 May 2023 17:05:59 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9822F93FC for ; Mon, 15 May 2023 14:05:58 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1a516fb6523so124500085ad.3 for ; Mon, 15 May 2023 14:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184757; x=1686776757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=R8ePO2sjaQnIm9bbBHn0PowqDmPeO6nDpTMp2JxSNYk=; b=o29sxTaaz8qJOSWSxCzjeWtgm62Qe1ICWyQTCd8Z4aJF5X08pKumnWKgU9iZYBvp6/ 5q5qXktiMXzGdTgRFRm+iCEFMkmaVatemLdrf7xGYASvtWBt9zeqWeqpmxPjh+yMVJQI K5ilbqCA0wOw5Zg3aQDZE1TZUzIX/YWhzpuuR71z/x3hEdzylXy4WlKUU7bPggmsHxyq lfP7M7jWeziixs+NI/KH5rPFfR+swCY960O7sMElmPZbEn35UNoDo59KjLlRfodz/1uO RRgsrWs0RMMOuF6eK2YmxJHe6rRHNuNDuj6m4wN7yHUDut4pFWJJIIUs+vM5riYnS0F+ XgMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184757; x=1686776757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R8ePO2sjaQnIm9bbBHn0PowqDmPeO6nDpTMp2JxSNYk=; b=jhmiWJkAY8Xoc5DsM1MuCKu50ONHlMYAoJAJQ+IJwjD6zf5DvUSUEdsvbYNPBpS3rk AaEHWE0jOok2xWESDOFHZPeDf9OA49wbZg/L5fREaMu6tKC1Jb3LH/Mtv7mB3v/yhrFx vTZ4AMaT2NPAGFJ3YN2QMtPfKFL8kNZ+CfbmEKp5ui6yAcySWV27D+6OK0T4H2WtUGci Xm8EBfM2MEwJEWlmJJM4rMX+FKV0hGToK3I62AWZw8N5CCCzWtdFFje8vNElw950VtcR CpjdQwMT4xLjOhdRbsV+nMPTyv3osJ1WFP7qLbbkko8v4LJAkFAu62srlvDvR5M6whL8 NLMg== X-Gm-Message-State: AC+VfDziox7LP8xigUWW34wgyyypqMfuTTbX2GIUM5p59UeFwPw7qWum /Y5jkR5sx4b7Cb243REOL1W2KYT9w3s= X-Google-Smtp-Source: ACHHUZ6tD7s1y5T3kLs/H4oAak8aI53MAJVrvCsblSEuu3XsRF8pFnNPtUKnO2RZaC6OyJsboFuMWA== X-Received: by 2002:a17:902:c20c:b0:1ab:16d5:998 with SMTP id 12-20020a170902c20c00b001ab16d50998mr35325973pll.26.1684184757222; Mon, 15 May 2023 14:05:57 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:56 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 7/7] plugin: Treat -ENOTSUP as -ENOSYS Date: Mon, 15 May 2023 14:05:45 -0700 Message-Id: <20230515210545.718701-7-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz If plugin .init returns -ENOTSUP treat it as the system doesn't support the driver since that is the error returned by btd_profile_register when experimental is disabled. --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index dd7b406c857b..80990f8c3c7e 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -186,7 +186,7 @@ start: err = plugin->desc->init(); if (err < 0) { - if (err == -ENOSYS) + if (err == -ENOSYS || err == -ENOTSUP) warn("System does not support %s plugin", plugin->desc->name); else