Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9019378pxu; Mon, 28 Dec 2020 04:34:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY17Egun0jn5hw5NuMtvCn+r/QN8ZVrGX3XJo5xj1xGSNmm5QpSg2/ytFjXzQ4Empzg6G3 X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr40636240ejc.349.1609158895939; Mon, 28 Dec 2020 04:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609158895; cv=none; d=google.com; s=arc-20160816; b=ux2ghPHWVzfpEN+flKE52lP70+gZrNx/8z9HVfA6lZg5zIFyh/DIAKljxpVUSWEoLx KNCivgqR+/bK8bDpOPldwl5AqAO9TE3IVyMCsEeVMDvdY5GL3udUYCgy/5OgljZiakit ERYMhasXcH6GvZNjSF+GZj+bD2SVWs2SXVI421TyIyJNvVmi9ytSZgydqA9Mj8mgyKns E3wAmLEpf2ji7jlRQQYiFBu3q4okWAx69KUWzS4ZuOKG3nI8Lk79bSsWkIblwaVSYO3S t3vYhS4Yzf1vdoToeLGoa3drS1ZILK2yH3VIA8e7wGKnpOek+1kp/VsAYFx1kl6NvUKz Ccug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=qC1v9goYcIxtBsxbYAWryzKJWC1bTqSPDBkBfiCZuCs=; b=FB8crHOiy7SCppi2ZdXSBxdnpaA30HIR8Mp8RajVOUTJGYV3Apo3bqsBuu4gPDq61n 8jQEvMvVjdEoPikUDWP4n6j/DOQCPGpeA8Nr5UPT0Wy/IUss1A9ekmEWSFXgAMnBKN7Q lKzu2j4n33x5KHEYnUG/yAvS8sNz9RdP0uspZiw0VXNYJJKPU8FpVBDfR9m+UcfIXmHC uWJKKSPS6wJTRw//NLXQUDKRYHhH0sWiGxGLxdNAySRaw3venNaFBEt8WbE50iKRl0IM lE4ffM9eOgoUs1zcPQLdySrv42H/DzQBJBTjcwGn2GFZ0+RpbRfWAbH92DaKsneMLlJ3 E/wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si22959980edx.584.2020.12.28.04.34.33; Mon, 28 Dec 2020 04:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726644AbgL1Mdp convert rfc822-to-8bit (ORCPT + 99 others); Mon, 28 Dec 2020 07:33:45 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:40528 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgL1Mdp (ORCPT ); Mon, 28 Dec 2020 07:33:45 -0500 Received: from mac-pro.holtmann.net (p4ff9f924.dip0.t-ipconnect.de [79.249.249.36]) by mail.holtmann.org (Postfix) with ESMTPSA id A8739CECEC; Mon, 28 Dec 2020 13:40:22 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: getting address type from scan result From: Marcel Holtmann In-Reply-To: Date: Mon, 28 Dec 2020 13:33:02 +0100 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: To: Ordit Gross X-Mailer: Apple Mail (2.3654.40.0.2.32) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ordit, > Up till now the peripheral device we worked against was configured > with public address, > now it might also be random (both BDADDR_LE_RANDOM, BDADDR_LE_PUBLIC). > The type of address is needed to connect correctly to the device > (using l2cap_connect). > > How can I get the address type from the scan report? > I'm currently using bluetoothctl, which seems not to expose this > information in Device1 interface. > thanks in advance! and happy holidays it is in the Device1 interface for the Identity Address. Why are you going to connect an L2CAP socket in the first place for a LE device. Regards Marcel