From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1616C10DCE for ; Wed, 18 Mar 2020 11:26:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2DDF2076C for ; Wed, 18 Mar 2020 11:26:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727715AbgCRL0N convert rfc822-to-8bit (ORCPT ); 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