Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp665480ybg; Wed, 3 Jun 2020 10:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzigRS/zB8U+BFsMPkjb7SRKtj2sYJPPoDBepvc0vbUZ4FQiZScJoY3z52FY8vCR8DCKUfg X-Received: by 2002:a17:906:e05:: with SMTP id l5mr353428eji.318.1591204800200; Wed, 03 Jun 2020 10:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591204800; cv=none; d=google.com; s=arc-20160816; b=e3YHKRDK9n6bTKcSDa3tvq2WDa5CxJdpvax2ogCR/1kf6pSdjVbtte9RQ8ddHE5pcA Tx3XcdvSV5LBAV3FopqUaEPedU0BxUBLkRCja99DDsF60WAnzkQBO7pz/+6wNyNuqFtW jdk/p7wYeQOJ4uFGnKDXLL2iClyYVoEg67Ejra3ECgqi86t6q3iwQhIQLxs5KpPxWb4Y hHlprmlYGheSGVgLKFpzbRKoxql6QJ8pH/gbJ6BL3GgCMajUzNIsYigAMWWvx5qO1nhn 8eW6A1JVGGqSURVmO7rPyzwqdM3KQpue5RoKH6ZEG++7XqVEtLifO8ySucZ5+wGHqPcI UYPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xRQkaDgCYr5WavUEwG9X+IXCuozP72lPlbUQBKEXUMg=; b=LmKPf4ALagvx2rj9X9H7kwqYHvMbZaHioLYqqRCIW/8JxpsxXshz7DkOrC4aKfXxV4 plp1aXujdJtb1Qe9p8anv4N8g+zE8WXUfZy11wF+b3itjJAgzZrg4fA52iYnooQtS3Zw Zs7OvgDO0rgjVMgKQGeOqNm2bZMfz1AI2tdn9BZE8rdo28TLWp3PmMo5guhph+Oz3wJ5 Bgi1yXWMoYZ81X9fdVe2fVIZQf4/ml8HSFiX55uMhFl53k1sxB7G8UE9iYAb1GQbYCQK pwBhiZhPatYk3tv98DNiCluyC+ipXKJ9w4PB7nAB+R3qzrhQSPLnqoIx2bL5tgb5maPT 4hTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hymNKe98; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si73581edl.184.2020.06.03.10.19.35; Wed, 03 Jun 2020 10:20:00 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hymNKe98; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725956AbgFCRRR (ORCPT + 99 others); Wed, 3 Jun 2020 13:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgFCRRP (ORCPT ); Wed, 3 Jun 2020 13:17:15 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CFEBC08C5C0 for ; Wed, 3 Jun 2020 10:17:15 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id v11so3297363ilh.1 for ; Wed, 03 Jun 2020 10:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xRQkaDgCYr5WavUEwG9X+IXCuozP72lPlbUQBKEXUMg=; b=hymNKe98ls9MjwmBtrDlz2sJsKOEwDfP89MfthetzVwdMU/S/wIf33mLNHYkm1IGBI oACnNbJIJXZrnSXDR9EeIA1FWwX1EvqdO0mvMRmpl76e7KYPOECdwfA9gd29rzzbtMym pGiyfHyscnGjHfpQJNy2QGe02spqUd5FtgtRpKWhz7vT+cfXGBlblC+DXqJt5iN9Pwbv BNMykOr3atc8vhAY9p5VPtOzNYp0eiAb5oe52zBhZ1hPncWdkMuDzGEZksQUWbD+LGVt 7tkqfdxbcM7AV2UW2EHd2NTxuwv+xTTozAahdPGfc1YQfkEXCBH6GyZRlQm+IsQ3yGiy MnJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xRQkaDgCYr5WavUEwG9X+IXCuozP72lPlbUQBKEXUMg=; b=kKJUoFAecMUFZjunMXPpmG4T+Qm68sq+9oE/2p3LAaeU5xNMiE3k9N7cXdh9epCaKB Kv6vhFAEfPYu/iVUFtDE1oMIRxgIQd2NjrXlBvPJ3c7CmSY+ymKbi+So69eUj1T/FgAn NBKmgud28mnst7gIftkIdcr8QBshrl7L5TffIphI53ndj+B0A/C7gOzbyCdP35WjhN6V NHsi1Wf/gh4MSakY1jOhBW+c6sn/IkCeVVEgtCXZKYT7gYy2q44B6WmcmyKlapaQ9D/K Qp82IEFgnDFTHv4fmo4ToFDqgwd4XfEFRHD8C7w+9Y2mtEkoGNoI+A2GZLcTyK+fHVR4 5jRA== X-Gm-Message-State: AOAM532cCSncJsIc7oVD/Inl0lUR2qwlac/K6dCaj1De+DNmcgAZuVPL favWK3F7MECAnooOTwJpvdK0OKl0u+QsMqg6bLU= X-Received: by 2002:a92:ab04:: with SMTP id v4mr527114ilh.186.1591204634634; Wed, 03 Jun 2020 10:17:14 -0700 (PDT) MIME-Version: 1.0 References: <20200407205217.1002534-1-marcel@holtmann.org> <1FE78D4A-E6EC-440C-B76E-82F75D615D92@holtmann.org> In-Reply-To: From: Sathish Narasimman Date: Wed, 3 Jun 2020 22:47:02 +0530 Message-ID: Subject: Re: [PATCH v3] Bluetooth: Configure controller address resolution if available To: Marcel Holtmann Cc: Abhishek Pandit-Subedi , Bluez mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi marcel On Tue, May 5, 2020 at 7:14 PM Sathish Narasimman wrote: > > Hi Marcel > > On Wed, Apr 8, 2020 at 11:46 AM Marcel Holtmann wrote: > > > > Hi Abhishek, > > > > > This looks good to me. > > > > > > Reviewed-by: Abhishek Pandit-Subedi > > > > however it is not enough, we also have to enable address resolution before calling LE Create Connection. It is actually a bit tricky to enable / disable address resolution correctly. > When we receive directed_adv we disable the scan. which disables > address_resolution. > immediately I was trying to enable address resolution inside > hci_req_add_le_create_conn > @@ -813,6 +813,12 @@ static void hci_req_add_le_create_conn(struct > hci_request *req, > return; > } > > + if (use_ll_privacy(hdev) && > + !hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) { > + __u8 enable = 0x01; > + hci_req_add(req, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE, 1, &enable); > + } > + > if (use_ext_conn(hdev)) { > struct hci_cp_le_ext_create_conn *cp; > struct hci_cp_le_ext_conn_param *p; > where this fails as the flag is not cleared yet. > where the idea is to bool addr_resolv as below > ->hci_req_add_le_scan_disable(req, addr_resolv) > In which we can stop disabling addr_resolution and continue > le_create_conn during hci_connect_le Uploaded patch v2 please review > > > > Regards > > > > Marcel > > > > Regards > Sathish N Regards Sathish N