Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp523990ybh; Wed, 18 Mar 2020 04:26:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvESch1rRuqnPjUnPI7C5Xxr0cbXwf9dMeTwpBda1XsxHGgE2IkTYmPV0VXY25YNmQmIIqa X-Received: by 2002:a9d:27c7:: with SMTP id c65mr3499010otb.318.1584530805368; Wed, 18 Mar 2020 04:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584530805; cv=none; d=google.com; s=arc-20160816; b=I1gjjA1gwH4KYFB/vq8vKzZ6aKqMQwHPEAJRHQRUI44gxqlYyMfBeVj/0a8ykFZHiC Bpd011480V5B/ouoM3guzjKwMnZjE6fXuaxGGsTMvHEJvYQT5qcMwwxlCzv0SjzBRTcx GU0Mtn8uOqUrtVjGrh7s3GngjqHLTBmSOZnNa1LM5JD8TH5wi72E1yIoqoJnldnVk4i2 meSc0B/0sIw0jW2VMgfELtYVIHWwbrPAz7yQk90rDv6Kqz1rNqYZ2I7xLv/0wFR8SAJC EMJxwtiB9GGszbPGbRODxNSzqEHgGOgcGeomtwPaLnCgAJ2KSxX3PcNTv3TQpmVMUEU+ 4cVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=FrK0OMhiMPy97qCyZof0pCpb3MlWTeWBOcR/vqKSgKM=; b=FPD5OYemwDYEpk7t2jJfQqjDgqs8uiVoAmWgoc4GN3QA9WPwKtnuGt2eBtQeTPpEFg StOnaMz9WJpD6PRFXMZcu/JgIgYW3oZZeZ+x5OWVHhEiSQcjtV0XzD2F9sr7zjYVZxcO ma3qxFlDKAouRAEFQdvdjqUvrqtsBOz0LBvTjT5tvvqzOfH0xFMaporJNKl8UYgvQr3r HmauHeqbALfc0RHnMPWzcE7PIMhXpvtKIWijfLZQpkASgxzPr0nV3es5QdP4F97x3cE7 TQGvyQ9VWcZ2XUe8MVnlwUN6Ai7a+OVD14cJ1I1sGzdX/z1kF4Q10gS4khVxk76WNyBQ gkJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si3405910oif.161.2020.03.18.04.26.31; Wed, 18 Mar 2020 04:26:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727558AbgCRL0N convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Mar 2020 07:26:13 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:44393 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgCRL0N (ORCPT ); Wed, 18 Mar 2020 07:26:13 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 75187CECF3; Wed, 18 Mar 2020 12:35:41 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH] Bluetooth: Do not cancel advertising when starting a scan From: Marcel Holtmann In-Reply-To: <20200316224023.1.I002569822232363cfbb5af1f33a293ea390c24c7@changeid> Date: Wed, 18 Mar 2020 12:26:10 +0100 Cc: Yoni Shavit , Alain Michaud , Miao-chen Chou , linux-bluetooth@vger.kernel.org, Dmitry Grinberg , "David S. Miller" , Johan Hedberg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jakub Kicinski Content-Transfer-Encoding: 8BIT Message-Id: <4DF7C709-1AD3-42FF-A0C2-EF488D82F083@holtmann.org> References: <20200316224023.1.I002569822232363cfbb5af1f33a293ea390c24c7@changeid> To: Manish Mandlik X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 the > 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’t support this, can we blacklist that one and just disable advertising (peripheral mode) for that controller. Regards Marcel