Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2716167lqp; Mon, 25 Mar 2024 07:24:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9sDoGPDh6ohCZRE4P9Rpk+35WDbKZQQW4VtcEk/AhpfeJSWgFJ/X+AQmbef7LITbI2rJEi6wnNH22xZwaVNnq38+jAdv8CgNYfeaefg== X-Google-Smtp-Source: AGHT+IFB7pNUbIpR36/Nx0f4FXrcFm3rk5L74LiGiu+HaaPQCaQdw26Cfazve0gS8Bzkt2TPr7Kd X-Received: by 2002:a05:6e02:96c:b0:366:3e54:c1e with SMTP id q12-20020a056e02096c00b003663e540c1emr6691919ilt.4.1711376676206; Mon, 25 Mar 2024 07:24:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711376676; cv=pass; d=google.com; s=arc-20160816; b=ACXCs8J06Bdv9uMPYYIHArKnwynrWAZFawBbA3IKK17wQ/r3kAIbMC8A29W0m8+Nz4 or+HrunRR7fVtkaplHMOE1Xd1UeeWfLBjpSMdddvhFn6PYiqVrSc5xgr37sHYGY4PZP0 FpLAxnGQ3BK1Y/UCbmCLtKI8ZaooNrH7PqVbXLP4VSfPpAl978zhsSZUZwJkQg8roPqs MiVDLZ3xt+yaMob+PZR0k52YWT6n6tvuE7krf1Ihb/oe715JyV+JugF5zSss5I0Efp6Q VrP7Szb1S6SbAgFkvypWoXevKfpLvRN75udYyltoKCISLy3FeMhY9gfz1cP+/5ui6w7U swSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=rPoDdA/17uei8EMpsiKpGk6NmEsfbhCRydX+z72OfVk=; fh=NS7q4w24wmRpz/bmGe7hdp/lnQetinWEJJZua9CNw1Y=; b=MmYLO7foytOrNcdJPjSPMSzhZGjgjnsM/4lTG8XqDAmxNC3cuA2DwnBF+j6kf6U9ei 73raXH0SxqymR4m31JYsFs3tzZgUGgW/jdfXNShoiiFxucEn0fes+PmRhNEhEFgdfwMn iJ7+MnL+WUnsuOV+2uOtj8uJtlFEF9riRy1ePZmRkr/JKdcQkEdRfAGPI3yq6pqgM+OQ 1VZwSyTnPFi6StEHYZ8XBpjD0JkzCgl9DS5LakCSMRT5tgjsMOlDG0YmqPpqbp18PQzw 5jeF2Fs7bCpvkuseriT7FFX+XFIjJ31JO+jes4Jqquto1ZzqvgngqNuYdBYWswcVOAbc kFHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=odDDus6C; arc=pass (i=1 spf=pass spfdomain=flex--howardchung.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n38-20020a635c66000000b005e49cd906d6si7777550pgm.97.2024.03.25.07.24.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=odDDus6C; arc=pass (i=1 spf=pass spfdomain=flex--howardchung.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A7C0A2C4DF1 for ; Mon, 25 Mar 2024 14:18:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 149E8188A7F; Mon, 25 Mar 2024 10:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="odDDus6C" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 106AF182715 for ; Mon, 25 Mar 2024 10:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711361426; cv=none; b=RF/ysEQXdAlvlY2LZwHbq35tAfm3npqqmextrR2dC64B2b8eAg1wuWD3Rks/LOZ8l4Hwm7OgQrojsPVY+vRh4NzN0FyQm3weAAqFJCzXp5YOAm0NZhJk/typFGh7swMv0swHiSQuKAbFpLem7PsrdQekzdARhEutJDla2ez15Vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711361426; c=relaxed/simple; bh=Mrzg63EbUwF336V6fWMIk5vRiUljxb35ctM9m77R3XA=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=sOezjEY+yp5o0IF/FnaEhdy6DKG7W1McrhGxpWHJE/vS76064NB+XTJU44mUb6+WuHZhKrdeOI2ktWXXcXkdLukNMjIz66rx1N9BeFjOuhLfyTMccCa7Gb1VeHCXRl/n4PDp4v7iNE8Ta6Jp28berKEWQhKcHgRhCh1WLKVPFZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--howardchung.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=odDDus6C; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--howardchung.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dd169dd4183so4892085276.3 for ; Mon, 25 Mar 2024 03:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711361424; x=1711966224; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=rPoDdA/17uei8EMpsiKpGk6NmEsfbhCRydX+z72OfVk=; b=odDDus6CVA/s/6GZUFs1Vc+/peEjV3qBc0hMoZAxbXaJh1oT1wR6tgKbIapnh1Xbck BaejVxBxp/8iI7U12lHjoAuPXTElFiZshlc+HEacYfU7BOKepusxKQ8DtiNN6i9Jbbjl fvC2h9M+UxiGaFhKjyO7WRSeZE9ORHHy5V+cGXme257kiczbqJaB2+uZQ8wrAoNHubII Jd1Vjkgo6n4YYOb0p/OFmPQp5fpLy8TmY4K6PVjTeOoyl86mT/Bci2Ie+5FTdMlv6KDW u43R96vjwhxi2wI03pYWWH95U3EkTBb5gXf1QHQF+ArlkuvfVV8h5joS6eAbVFFc17PY DyMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711361424; x=1711966224; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rPoDdA/17uei8EMpsiKpGk6NmEsfbhCRydX+z72OfVk=; b=g0jnD29Xe5s8pRapmAqPuhoQJu7i1vnQUAiLl4XcLZsNeZRV6bpToIv+f+DJ94lSTM A8kHZz8CanP1n3DKLKDSZPM/Ik5R1RnwqUGrar9RtnXt4usjJUXjsP6rSYKFyZx0e/qP L4vR92MejrjEPcNpHd01ZkxkYh9Te4EVcto2mdxMQTx7cxsLzzvV/5l5mi1ReCbJ4Z01 3/GkAHS2i8FHFF4GVqm2Tmc80ThTUwsWCxBZHeBcyNhJrP3z/mzpD9YHJkahYdW6W0wo mTZ9xxxFvcHcAowJ7yauCtRyrXWgQeWDLWYg0Mcr0WYqUTfyJLdZIlr7GuGc0BHPIChe AfpA== X-Gm-Message-State: AOJu0Yykr1cJ6vGMv3MxoL46w30mGjMcV8w0mlOVL0d5NGyhtbQTvmjQ l+L4HLUKNcK1F5K7YgnAjnKOS03Xdel3uuxxViiRnlEGwwo7Jl+9WnmOWhJ8IuPQAkAqb758VKC /n1XDz8LGOh2NHh/QzkLDdo5apl/ZOL6iwFXPuGdeZicpUUqe40RbE98Ulea2M61M4WpOhcZ/zU sxg1A9HPHikz0HJ8n8cvjfZqRiCfPtb7wjf+tIwTYT9nX8k3PsA+B7htJOMC0CwxLTLMlQDIU= X-Received: from howardchung-p920.tpe.corp.google.com ([2401:fa00:1:17:e49c:63be:93d9:c243]) (user=howardchung job=sendgmr) by 2002:a05:6902:1207:b0:dcd:3a37:65 with SMTP id s7-20020a056902120700b00dcd3a370065mr237433ybu.7.1711361423434; Mon, 25 Mar 2024 03:10:23 -0700 (PDT) Date: Mon, 25 Mar 2024 18:10:04 +0800 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.396.g6e790dbe36-goog Message-ID: <20240325181004.Bluez.1.I8b0ed6ef2fa5a273f990a5c9f0872aaa539b8b39@changeid> Subject: [Bluez PATCH] Advertising: Emit features property update From: Howard Chung To: linux-bluetooth , Luiz Augusto von Dentz , Johan Hedberg , Marcel Holtmann Cc: CrosBT Upstreaming , Yun-Hao Chung , apusaka Content-Type: text/plain; charset="UTF-8" From: Yun-Hao Chung Advertising manager has some properties that relies on kernel information. Once we received the information from kernel, we should emit property update. Reviewed-by: apusaka --- src/advertising.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/advertising.c b/src/advertising.c index 0131fc1c7..7f55a20e3 100644 --- a/src/advertising.c +++ b/src/advertising.c @@ -1890,6 +1890,19 @@ static void read_adv_features_callback(uint8_t status, uint16_t length, /* Reset existing instances */ if (feat->num_instances) remove_advertising(manager, 0); + + /* Emit property update */ + g_dbus_emit_property_changed(btd_get_dbus_connection(), + adapter_get_path(manager->adapter), + LE_ADVERTISING_MGR_IFACE, "SupportedFeatures"); + + g_dbus_emit_property_changed(btd_get_dbus_connection(), + adapter_get_path(manager->adapter), + LE_ADVERTISING_MGR_IFACE, "SupportedIncludes"); + + g_dbus_emit_property_changed(btd_get_dbus_connection(), + adapter_get_path(manager->adapter), + LE_ADVERTISING_MGR_IFACE, "SupportedSecondaryChannels"); } static void read_controller_cap_complete(uint8_t status, uint16_t length, -- 2.44.0.396.g6e790dbe36-goog