Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2036867rbb; Tue, 27 Feb 2024 08:44:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1Vlk9eLe8THvwOzbQTFbd6GB+IPUtJPwvFJ/dPyAhzRSQZhgu0JKNBVQ16unP3L/ee8jVumydBMtdHqMp2boK/O8+fYxQErlstS3iXg== X-Google-Smtp-Source: AGHT+IHRsiD0mLimSnr5h3iDaOhFv5VsLt/1eTZRM3yDLkgF16sJ4P0EwbzWyO2V9SJzGDYST8o7 X-Received: by 2002:a0c:ca08:0:b0:68f:3295:245a with SMTP id c8-20020a0cca08000000b0068f3295245amr2339714qvk.4.1709052272065; Tue, 27 Feb 2024 08:44:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709052272; cv=pass; d=google.com; s=arc-20160816; b=kD5HNj9a38i3RyeOZlFKDKoHtGziHlxCdN1/+QrJnBG2xLOzL3fgWB3mnRDWuj0REP qJXRy5pFQX+W+gRCOkv7LGgqLugnzrJYotg7wD0aj3CLfHLSm0mcpsRzbGC0/iJGoYhV jsrroIvBIzsuaVVojlYpQELRoj2kjIgQxkTVwD8JvLX2m91mXzGW62T2K2xVkI2lcn4N 7+AG2VBpcA9BgzDJEv00NCLq5I1jQdSsOHWttbkK8kMftYz8JDFy6prd4a+t983RArR4 hmzSVwnXAb+fYGujsD4BV7UluCKtXZ0HI6cF51LLS7R302Z/bXUJlnaueHXNCU81qvoT J2dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=oSV8qVBZIYT8/RnPIXC7e6ul1BVe73ZSzmIdXj0MKiI=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=la6UaTavpd0Q1FLUKZVi/We+AvTk/SCSivBPBujhWr8yBZGIbGGikIM5oVL2Lx+OJA 9aLH6f9BUaiNSN3Xi1xvTX6oFWZ0UK6y23CV2w2fPH/x1ENtySvAjnJspyIXIMQ9nLK1 rzrdsXr0h65SVjQYEDX4YgZzVh4aFmxHTt93qhOdN+AA5QMY9xqYM0tkq4T0QnCAa7US L9nJwe5elKcygVMbFpfpUO7AvYfalZ/zptkmJnFuCXBGY7AdAy/0JPM0yNeDPi02tLIZ 8b831iAifTffgWmdFM6l5H/iesjI1sPCfj0hPz3Ju4VZ4Je6g8FGRfIdAQN/FHHXWSZW 6ukA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=drf7Oubd; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q5-20020a05621419e500b0069000928743si5462505qvc.329.2024.02.27.08.44.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:44:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=drf7Oubd; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CCD241C2336B for ; Tue, 27 Feb 2024 16:44:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 753EA22091; Tue, 27 Feb 2024 16:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="drf7Oubd" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD91C2C6A4 for ; Tue, 27 Feb 2024 16:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709052249; cv=none; b=dK9otPIZPf/uf9xTiPVpMPAquMqXnoORfJXnvkxjzmb64tt+Os6lyCYQqIKkl/FNhbqYHhosdpzRNHwC6F9kiNo1WryjLInGZZeYsDwkDP0fUYP8ccUC8IdUb06NsHSg00qQMNyKJn0IOITrrbo8iCcV2siIUUcVnIw/Yt5wtQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709052249; c=relaxed/simple; bh=wFD/0e+zYEhk/i6GEa+vOAGTQEiwvHmSoOygd75kFiM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=R1DJznCjPx3OxAZyMJkqNSpFlDPElPe3ucfejP7iksLxqMchR3DmC/wGC+PvXveMzVKsgZ9JeOfejWmHMbosd2KsWmIAVwVAy0Pl7E5Ui8B1hm/HnZ+8/Mga7unWe52952uOJDYkDEUhYS35vabWUkagEPFJPtoIfFSlxqz/BE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=drf7Oubd; arc=none smtp.client-ip=209.85.217.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-470446f19cfso674336137.0 for ; Tue, 27 Feb 2024 08:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709052245; x=1709657045; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=oSV8qVBZIYT8/RnPIXC7e6ul1BVe73ZSzmIdXj0MKiI=; b=drf7OubdC8lrRNHYcEpMqIwUeLXd0bkv/dIx8NGuofvPNQ9yVWCjcErUzh60ph9mmJ Gp8mn32pvVpY9dfzeAl/Pd/KQrONdKEEmOZqsoUYKy4xn88JCIxYc7wSzaomfBbSdet/ z1+cIwiwade4jss1I2Ra0RD08IUKxz3L7YcM/rWlchVT3YCBz/26Atn+M9Mqzjdukscr RrAAIn/hYiI96NO2b4WrrWPiOPTqA4+vQnBxBIhwy81x4tO+LFGXvHWGPj7XwdSPpEg/ klTNcSQJlfjyHPn1NMr0EgQ0ntSg3h/mBRQrt7yBQe3fP1ayBCl7jBQcnUyLryQ6Esx1 RfDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709052245; x=1709657045; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oSV8qVBZIYT8/RnPIXC7e6ul1BVe73ZSzmIdXj0MKiI=; b=Q3y0j1aCfbRdMU72sJ/kJnofHFyz8qNyrToZAJyoCa6GE7haFm8QX5V7Ckn5/6p2FO j423p2h17JVqSQSlU/Z2Q4pZTfMAN4+BcqGIENglOip/nORhd33hIv1g30wZYMm6CYTA JOW+obROK0FyzvCIB2d1TSy8RIF2vGq2OofkwHLInMwDphWw9N1cetXrMx73u3b3ftfC kpLu/3UoQpjjtr7uj6sYzmgTj4DmEfC3XdIzbK2YprkjMcOLfDS4gTnzJO5Nf1ky7xWP +wAZ6ixNA8BZ9SXxBPH3skV/pKKE46q7Nd3nJF9XGYP/HeZLtbbXb7fTFVEza94/Mu98 TN3g== X-Gm-Message-State: AOJu0YxsSAqf/XOHWSnSrMhI63vPUMZPdfwfsg0qM8t6061vpTRsuby3 kj4LFMfHANKqXR5W3JnCmVXO0gyUfH9ZqWHTxMYetbiaalTaHEGwF/RsNkjJ X-Received: by 2002:a67:fe4b:0:b0:470:5373:2389 with SMTP id m11-20020a67fe4b000000b0047053732389mr6583237vsr.0.1709052244897; Tue, 27 Feb 2024 08:44:04 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id j30-20020a0561023e1e00b0046d28239032sm1378126vsv.5.2024.02.27.08.44.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:44:04 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1 1/2] btdev: Fix not resetting big_handle on HCI_Reset Date: Tue, 27 Feb 2024 11:44:02 -0500 Message-ID: <20240227164403.1904213-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz HCI_Reset shall cleanup BIG state including if the handle has been set. --- emulator/btdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 3224b73bfc31..0ad6b2793c06 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -577,6 +577,7 @@ static void btdev_reset(struct btdev *btdev) btdev->le_adv_enable = 0x00; btdev->le_pa_enable = 0x00; btdev->le_pa_sync_handle = 0x0000; + btdev->big_handle = 0xff; al_clear(btdev); rl_clear(btdev); @@ -6483,6 +6484,9 @@ static int cmd_big_term_sync(struct btdev *dev, const void *data, uint8_t len) } done: + if (rsp.status == BT_HCI_ERR_SUCCESS) + dev->big_handle = 0xff; + cmd_complete(dev, BT_HCI_CMD_LE_BIG_TERM_SYNC, &rsp, sizeof(rsp)); return 0; -- 2.43.0