Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp686379ybg; Wed, 3 Jun 2020 10:53:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9Xbnq1PifZCvIrSAWBlQXyNSqUYtQEFyTw9gr3pobVXx0aXx2j+qTmQFxzBEBgDs2jy3R X-Received: by 2002:a17:906:81c1:: with SMTP id e1mr472003ejx.218.1591206798193; Wed, 03 Jun 2020 10:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591206798; cv=none; d=google.com; s=arc-20160816; b=MTG56U3Di0KUFBCA1FXSkcN1CvjXkp+XWcBjwmnqetaCidLZd27iEfeJoXE6hwKpuT UzgeB2c6Sb0qOdcmsb3TGiGKR7UjVS8Us1Z8eGjCncXkOCeRXPN2Fx0XMu4dcodb6Qra ksQ9kxdvbTq4YLzfhMcTboanwzO4IxdxIEM5XUicD0TkqOHK378JPqlzQHLMD9Fh1k0n ilc4Wm0r6nAAARBT9ZtZRemy3iGi1lGfvJaJmDUrZD/UVYZVzB2cAvJyMILa/NwxwFRQ P7D8xhMJLgW0emLWao21GZUJcp2Z6DRR26829eVY5wzrsLweBMc2kBLhamLrFXWS6m1c 6wBg== 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=uRQ+9kncrwbNS0By8SAH2um6rAkWJDlf1CM+SImG6Uo=; b=klphX+tzdCLvT8X03i4tyMWVwfePV8h/Tc3q2TxCSZHFLsjPFpyFIihcNJgov51v6c lQqIyG8hzq+FR6c/3wOaLh+TzXnabR7jDG32qE3MxNKvRvMJ/icAURXm9hPoO1HQVnn2 FTq9hzV58wooEpGjCgnGstXUM7pgyQE70IjhO2UVv0Ypw7cZSpclQG3JvDAewv+zBSO3 VD4IL1/oC7T2pkLWbE2yefhNOpZ2HCUOouYlDvzIBCD8jFUu1/6BhPY7U9wva+IL/Fbh GimrReddyO1d5bSQFxE62o6q4LE9C/Gq265B547cHx9PRxvfiU+cTgq1LCH56m6JcG4C /Ukw== 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 d10si128429edx.555.2020.06.03.10.52.54; Wed, 03 Jun 2020 10:53:18 -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; 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 S1726103AbgFCRwh (ORCPT + 99 others); Wed, 3 Jun 2020 13:52:37 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:59020 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbgFCRwh (ORCPT ); Wed, 3 Jun 2020 13:52:37 -0400 Received: from marcel-macbook.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id 99CF5CED2F; Wed, 3 Jun 2020 20:02:23 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] Bluetooth: Check scan state before disabling during suspend From: Marcel Holtmann In-Reply-To: <20200601184223.1.I281c81384150e8fefbebf32fa79cb091d0311208@changeid> Date: Wed, 3 Jun 2020 19:52:35 +0200 Cc: Luiz Augusto von Dentz , Abhishek Pandit-Subedi , Bluez mailing list , ChromeOS Bluetooth Upstreaming , "David S. Miller" , Johan Hedberg , netdev , open list , Jakub Kicinski Content-Transfer-Encoding: 7bit Message-Id: <2FBCE848-7DDE-446A-A159-0B1A53AE7893@holtmann.org> References: <20200601184223.1.I281c81384150e8fefbebf32fa79cb091d0311208@changeid> To: Manish Mandlik X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Manish, > Check current scan state by checking HCI_LE_SCAN flag and send scan > disable command only if scan is already enabled. > > Signed-off-by: Manish Mandlik > --- > > net/bluetooth/hci_request.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel