Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4096009rdb; Mon, 11 Dec 2023 08:42:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2HVVpoQur+JkgShkb7F9a2thLuiGWez0H6PYQFCHpKw6lF+DF2/Zurx+RmfqMO25i5DNr X-Received: by 2002:a17:90b:911:b0:286:aab7:42f with SMTP id bo17-20020a17090b091100b00286aab7042fmr1825398pjb.14.1702312974842; Mon, 11 Dec 2023 08:42:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702312974; cv=none; d=google.com; s=arc-20160816; b=k++axr0lcAZp4qPdgrRcWQdx/cN2klgNRqzOT4Xl+3jxe7Y+7oui07V6h9t885AIJz 2KdrYTGIpxqTQKNBMV/3bgYLrknZmvhF53oMISGRvueA5GmtRKL0aR4b0bWOt4mHsRin 8r8GLbvgnUn8PoWn4xwZTfAeIimPWr0a+6Wo6CsE0LrdcV5ozuI5z8HG9u51d0GuZT0s PAXHyMNUMWU37t1RO8q7kRpu/YAkQzQyuzB1IA5bzwQB0uG3+R57Nh6oMy/5VP+U+9u8 moxynBdXK33uxrOhve8D37WQAqHENdY5dg8rMEtD403wzMwRrZ+l08QseWWufrrqng1r rX7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=34RTLE4latA1ndwKWr6wBHgOPTLPG/f2WMiFpqc09jo=; fh=V55vXmYu0kw5gQpdQ5dNb3kOR3FRKUEawX2qLN3J/TI=; b=xNZp9MXY744l+LwDsrUKdEbMb0jcdlCYHMMbfHCiO/dPydgzyahnFVdDJJIKqfgJO5 884Jh/XoS7N4WhCF6wzSpvEeY8vVAnrUyGVS9pB+xNm9OZUHW+J/PfrDq09FT8cq09b3 Uvkz1Hcd/gu9MzS6HzHXKMxEZrvTNIifXHw+vHRZDVUBNvuP2QQzFaKSUgWzLon7Jd0u nbLEO49t8Qy+LRjTT8OSkDV8f5wlCfdMmEIIQ7NrLzMBFVZ6jpI07jZtvyMJt+vNT6YM gI+RCe2xa2zFBEkty5sQHT+319BXD1iZ8u4RSEp9kFdQwVxUVRNSbHeUVrAHRSeU4pIB /8kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=IpGQlHWl; spf=pass (google.com: domain of linux-bluetooth+bounces-522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.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 gv1-20020a17090b11c100b00286cd18da88si7679092pjb.137.2023.12.11.08.42.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-522-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=@126.com header.s=s110527 header.b=IpGQlHWl; spf=pass (google.com: domain of linux-bluetooth+bounces-522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.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 7E844281052 for ; Mon, 11 Dec 2023 16:42:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B12A20DEF; Mon, 11 Dec 2023 16:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="IpGQlHWl" X-Original-To: linux-bluetooth@vger.kernel.org X-Greylist: delayed 904 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 11 Dec 2023 08:42:42 PST Received: from m15.mail.126.com (m15.mail.126.com [45.254.50.223]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9986198 for ; Mon, 11 Dec 2023 08:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=34RTL E4latA1ndwKWr6wBHgOPTLPG/f2WMiFpqc09jo=; b=IpGQlHWlQocdLvpmSltcg SzQ/oJm4D6Qa/GqhAHHSorEW+sdWTmW8df9tx6cW+TxIesKCWeZvrBgj5bnw+hir wwrFteb5NgOReU0jUWlPWpI+BznuVZfRqKrH+VjJ2u6wR3RvMyYpv2m14ZeDr2Av SWrlBffFw4D+x6yUyiCEt0= Received: from localhost.localdomain (unknown [58.22.7.114]) by zwqz-smtp-mta-g1-0 (Coremail) with SMTP id _____wDnT5NyOHdllbAiDw--.21285S3; Tue, 12 Dec 2023 00:27:32 +0800 (CST) From: Xiao Yao To: linux-bluetooth@vger.kernel.org Cc: Xiao Yao Subject: [PATCH 2/2] device: Add notifications when the bdaddr_type changes Date: Tue, 12 Dec 2023 00:27:29 +0800 Message-Id: <20231211162729.1183207-2-xiaokeqinhealth@126.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231211162729.1183207-1-xiaokeqinhealth@126.com> References: <20231211162729.1183207-1-xiaokeqinhealth@126.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wDnT5NyOHdllbAiDw--.21285S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RN18BDUUUU X-CM-SenderInfo: 50ld0yhhtl0xhhdo3xa6rslhhfrp/1tbi6BhD1WVLY0IN1AAAsw From: Xiao Yao Signed-off-by: Xiao Yao --- src/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device.c b/src/device.c index a734fff0d..17bcfbc49 100644 --- a/src/device.c +++ b/src/device.c @@ -4472,6 +4472,9 @@ void device_set_le_support(struct btd_device *device, uint8_t bdaddr_type) device->le = true; device->bdaddr_type = bdaddr_type; + g_dbus_emit_property_changed(dbus_conn, device->path, + DEVICE_INTERFACE, "AddressType"); + store_device_info(device); } -- 2.34.1