Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1330154rwl; Wed, 29 Mar 2023 16:26:42 -0700 (PDT) X-Google-Smtp-Source: AKy350baFCdLy1R2q0v+UN/XFXkGrLbMiimcyV3XqtggE759ZGw2WZtpOts71yr6FF03okOaOdJd X-Received: by 2002:aa7:dd57:0:b0:4ac:d3bc:cb0d with SMTP id o23-20020aa7dd57000000b004acd3bccb0dmr19609887edw.3.1680132402102; Wed, 29 Mar 2023 16:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680132402; cv=none; d=google.com; s=arc-20160816; b=xno+93paNURp66EXfbVSOy5v29V0EqVgn9+Rj0+b0hxpzx9Tu7YMTEfWKVKBt5o7ac +ZhhuI5bTQsrDuXMc0fxzjPTa7lv/vRfEKOEhUHRmY8wUE1ts0aXLn65XnEdb5UgTSdJ ogs9fq6iw3PJHC0SQ+7xit06Lvwz8xXD1NcqyNAynJHy14LeBoJ3Uc8r0eu5ltmZ7rRC /PQhR6E1ly0Ku1ivzpYZb/BE6IIntiX4OxDa5cHUGmQV/2aUl3QxebWJgNL23XcjcX98 AcT5rnI5Z3lw3TSyjIZcKybwRW8+dULoJdthZlejv+m1GLUFKVvr1L1QBZH6KM1rQ3Yx 1cpQ== 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:to:from:dkim-signature; bh=e5gAEQBgCAmrDCYhK9Tm1iY+TdGfsp+0qEGPnEFs/eo=; b=rZJF00Orn/eielQd9QW0Fh7LrKy8WPSoMmZ5j9WAJWU6kx8MvAOJLNuNcNpj3Mawg+ MLNbtbLIr5/wgAogoiPqlwuuRfJmzq/wJWEIQ+Ifaj78xWRsWB9v3XpHN+xHblYUBqKb 4yomNF/FCGApXCPFQ/z5uQbE5ZHmnv38rWvLWbnOcYzdwN+aQYiuUTPHQ7IDWqnxCHBc gBa7ISVoxJHfeAoQdiHe09tyZ83wvtbfRD8V4Ul4x4s3oi+v2rSyH2ydYYnbY5Zi0CLL BbcQJiPen2imOgVcHNnY26n/Ml/M/C4UQy2jiTv3uTkB8FF5DpcshYrLkCGx3qtgGjUx 55+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OPVN7SJf; 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 b19-20020aa7d493000000b004fc0c645ab1si37201478edr.234.2023.03.29.16.26.08; Wed, 29 Mar 2023 16:26:42 -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=20210112 header.b=OPVN7SJf; 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 S231158AbjC2XZn (ORCPT + 99 others); Wed, 29 Mar 2023 19:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231200AbjC2XZm (ORCPT ); Wed, 29 Mar 2023 19:25:42 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6547E1BCD for ; Wed, 29 Mar 2023 16:25:40 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id n28so3146712ioz.11 for ; Wed, 29 Mar 2023 16:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680132339; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=e5gAEQBgCAmrDCYhK9Tm1iY+TdGfsp+0qEGPnEFs/eo=; b=OPVN7SJfeYkgO3QYAWN7OiHcEXNHXEI+lQSoBH9FOIYa5vfUDRrPUn6fmejZv7/Bu/ 1KurxZQeMRpxYAcarCsP/4hJiSs7EoopQjehM9iPIsF/SZpPQyx3lqSqw9jQoJUJO1Ty 8znKRVEG1y4wZNQg2oz4LMEVdN+Oo/EuQrIYNAcDWjsx+zToU8GifQzqgGUcX/fQifTR uVZ3WMyHXaOrsVrae6+m6BVM5JRctRK4h80C9qdC2+TMJg/W6QMQC1QadA6adjqhe4Zm 81uVFuM37TpdS2UgiXTAnnFwClFv7uSCgJzJf1dyHIA4rN77CBY9H+kdUBvjorG5SR8G nL/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680132339; 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=e5gAEQBgCAmrDCYhK9Tm1iY+TdGfsp+0qEGPnEFs/eo=; b=upX5si6gLHlJ7Btc6z+aKpFNLpzE7Lsq2Cnp71MNBbZHO+f4LD2+N+PZTmfvpdgUm3 An+eM8ZQKmSMadGp/F7L4XgGBDr4YK52SAZHVpEYGPhZrbfkYXEmMjaqsTGxPjaW18Vd m1w7MwQQceX2nt2ucqyc+yc6NnbKJoA1VjQ1WpBprH6DegQlSa8/eXDF0tFTnOog7rZ4 iOFGsGz1giFfTQEUnC8h1M/ayLWG665Uefr+OpooMoA+s+JersRk8RdsGMCcR6uNCGmy MfZjC9utGfcZlwP++Shec0a1yiVFEnrb249WWY7kNs2ns7JZ2poYN7+usL+yQfpUAXkr DcUQ== X-Gm-Message-State: AO0yUKX76SkcHz+YlGONGBKRchXu8609BWUzAtEEfLS9aeCrUhX5dBNP YY9XFxgZHER8Gi3SjsN05wLnhysmniV0Hw== X-Received: by 2002:a5e:8f4c:0:b0:74f:b453:b334 with SMTP id x12-20020a5e8f4c000000b0074fb453b334mr15840990iop.18.1680132339305; Wed, 29 Mar 2023 16:25:39 -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 a25-20020a027359000000b0039c492ae300sm10654825jae.114.2023.03.29.16.25.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 16:25:38 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 1/2] bap: Mark devices to auto-connect Date: Wed, 29 Mar 2023 16:25:36 -0700 Message-Id: <20230329232537.577958-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 From: Luiz Augusto von Dentz This makes devices with BAP support to auto-connect once they start advertising. --- profiles/audio/bap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index cfe6854663fa..464f365a93bc 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -1352,6 +1352,7 @@ static struct btd_profile bap_profile = { .device_remove = bap_remove, .accept = bap_accept, .disconnect = bap_disconnect, + .auto_connect = true, }; static unsigned int bap_id = 0; -- 2.39.2