Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp529399ybh; Wed, 18 Mar 2020 04:32:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtMxDMZE/tbuYzIK4Vg9gzhHkoHgoEoKC9fiqxegJU2vRpg7oF+IXUs9Zxy+YNHBPyA7/px X-Received: by 2002:a9d:5a9:: with SMTP id 38mr3120745otd.331.1584531166132; Wed, 18 Mar 2020 04:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584531166; cv=none; d=google.com; s=arc-20160816; b=eNFz2x+RM2t4E1zi8x6GjAtRqFvjDe4L4dVgkqFVW6frT3Q7PeysHNFxLfFxXRKGG5 1BI/CmYFnjdEZv3946oxpb7FTX+WXvWAL3qCAed4XZdjsFcLWnzFxKs8BqH0fBg5dH/1 8GA5jC4WlWvU7QzXbnp24Z9DkEkja1DvTMeCQ6M+2v4qBwIyEmJPcoZXLcGu8NJq3VhS buICWzsTcJYY0rc9kDQjwJhXiAqmhw25wcYXpTBOTS9dOrA71wRakYmt47KFVr1OsWh/ IzEJKI/fZdQxj9tQiT3uh0DINHTXygNhIiWVUKukz7I1ay3pif1LrFalWt6G5kYMp1bH LJgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NjD2GamyBEc3sKrO1F2PZeSZdHhFZ3Ii1Pkm+OVNywQ=; b=qrolY+HJbf8oloBcs0eG3k3XUqbvQSvyN2AmtKZIy/d5LRkPjbj/8ELY0nTpiAis2p PDnVa7zg3c6QgTpH4XjoFsE+izEskWGl4SDq1p6tVqBjWoZxzOVuULfpn3O9dL4ln4A3 dhJCIrUke3wwjfkhJoDmTZ8/GxIvI6uasn/8K+ZSB277CvP/IcErcPfjd7PQoU8t60yl kDaGgPxdezF2nflNKs1YREHR26RvmbfEUX7gwbMU0JoOfBxdfVWTaPhorFU+Fb6l1pX2 0OOE/71EgJfpmSieDc/5eSun7Ys7b817GSwoxTcr1X/LD27X/i1E7fXcsXXvl1nUGpFj /org== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Da1jSNe6; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l13si3061181oib.268.2020.03.18.04.32.32; Wed, 18 Mar 2020 04:32:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Da1jSNe6; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 S1727782AbgCRLbr (ORCPT + 99 others); Wed, 18 Mar 2020 07:31:47 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40611 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727217AbgCRLbr (ORCPT ); Wed, 18 Mar 2020 07:31:47 -0400 Received: by mail-ot1-f65.google.com with SMTP id e19so4021859otj.7; Wed, 18 Mar 2020 04:31:46 -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:content-transfer-encoding; bh=NjD2GamyBEc3sKrO1F2PZeSZdHhFZ3Ii1Pkm+OVNywQ=; b=Da1jSNe6xlZ/GBGCQJZ7qqQIRteleIHOErt7JIc00/AfTtQzZEK0B6IBoRe3w+p1J0 GZ5cNqkjGNxzSYjCqwjwvEeiCt9fgX2Q4ulDbn2xrpFAqVOahRi9LJO+n+xUxR4qT3kI IV5Ojt0xWxy5OXylEWpRqgbUD2dY70GNJJhgk0aHCK9N2aZI6n5g6XiWhUVmS1IftoRG cwHw0sJberSdtUyouOMD2eSP3edYAoUxg0TnK33UPw0thLJxPzb/uTPpm4+u+l6Kw3M4 p1uBpIhLhtchxOg3LF82qKMVd6bTLPZxD0AGxYmw51iHKC8iiLmRqwhCP5616WJnVSJb rKeQ== 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:content-transfer-encoding; bh=NjD2GamyBEc3sKrO1F2PZeSZdHhFZ3Ii1Pkm+OVNywQ=; b=abbMLaFsA1XDEvfeteOiyH+kYR8aKzfR1FQp/baQjMb9J38/Q1wKG+HJw3Lp1exb+M 1Ps5YbK1K8vp1/OKTWvjSgR0riY2+aHrmyN4/4CvGfs1WPpWhdfsAknfBfS7EPUN60M+ XKnud2YKuYzmKEstTTFDJwxJljY+DYk3LG7Hu1gUbkCrIb/Uf74dtgJqJN0/zNToSObh q6uRJk1eLFoKuj8WIjmwV5gDbCqE8Znh56e1P0bVGXnOGPFhx8AFJp3L2qmOWaprk1m1 pkHvOvDfz/ur7zhRLpFj3xggemPSYnaegw6RNN8PONXoEBiNd6MUkMh8XVX4L+kBpGH5 hgZg== X-Gm-Message-State: ANhLgQ1ZeHU9LheteWAyxviHsUPzYTSh8D5TyC3i6Xa0H/kABhXrI34u nFXsW06mcw3B0iAMtCabk0AVIXQNtIKGU42v19I= X-Received: by 2002:a05:6830:1195:: with SMTP id u21mr3175391otq.351.1584531105983; Wed, 18 Mar 2020 04:31:45 -0700 (PDT) MIME-Version: 1.0 References: <20200316224023.1.I002569822232363cfbb5af1f33a293ea390c24c7@changeid> <4DF7C709-1AD3-42FF-A0C2-EF488D82F083@holtmann.org> In-Reply-To: <4DF7C709-1AD3-42FF-A0C2-EF488D82F083@holtmann.org> From: Emil Lenngren Date: Wed, 18 Mar 2020 12:31:35 +0100 Message-ID: Subject: Re: [PATCH] Bluetooth: Do not cancel advertising when starting a scan To: Marcel Holtmann Cc: Manish Mandlik , Yoni Shavit , Alain Michaud , Miao-chen Chou , Bluez mailing list , Dmitry Grinberg , "David S. Miller" , Johan Hedberg , Network Development , LKML , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, Den ons 18 mars 2020 kl 12:27 skrev Marcel Holtmann : > > Hi Manish, > > > BlueZ cancels adv when starting a scan, but does not cancel a scan when > > starting to adv. Neither is required, so this brings both to a > > consistent state (of not affecting each other). Some very rare (I've > > never seen one) BT 4.0 chips will fail to do both at once. Even this is > > ok since the command that will fail will be the second one, and thus th= e > > common sense logic of first-come-first-served is preserved for BLE > > requests. > > > > Signed-off-by: Dmitry Grinberg > > Signed-off-by: Manish Mandlik > > --- > > > > net/bluetooth/hci_request.c | 17 ----------------- > > 1 file changed, 17 deletions(-) > > patch has been applied to bluetooth-next tree. > > If you know the controller that doesn=E2=80=99t support this, can we blac= klist that one and just disable advertising (peripheral mode) for that cont= roller. Can't the "LE Supported States" be inspected instead to figure out what simultaneous capabilities are supported? It seems a bit rough to always assume the worst. /Emil