Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1796511rdb; Thu, 25 Jan 2024 06:29:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8OlRcXzIH8haRAD4DBsR4MNEMAEs/1vJiTtFA4wCuJVINFznI8E4h05hUi0CjWRkkkzIx X-Received: by 2002:a05:651c:338:b0:2cd:d02d:7b2d with SMTP id b24-20020a05651c033800b002cdd02d7b2dmr573162ljp.59.1706192989896; Thu, 25 Jan 2024 06:29:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706192989; cv=pass; d=google.com; s=arc-20160816; b=OBrLZ9/edtiL3lgkNXacW3v1W6CdYoNqJeglZtgjO+Tw4VvibrLJf+kLswenY53Omo SoxoY6ykGIClYL9yMcnr/RDlDKK22+yfXBGQstoRQXZPiUTcF83+5pWe0C8GZbzVTwT0 9iFCvNN4wLdHydPOCCYqJF5hzKjBe8ND4yD4Ao3N1oWZPXUI0Qu+I4W8TS/4exPm/cu+ mtHx4RQV+5VNzLj61zqgILVQ8pGbZjQa2cQemlub43gzdrf6qlY1QiRkdpVfjgdx0TMh GIytkDlK7C5H6aMSU2jx+d2CP0mWyqYwKg1y2w1J3uy6dxNQTMLwe5DBFSQXOpMgXVPO F2Rw== 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=AKb/umfW95Q6N4Y6buXO8KuXgym5NkVsCNnutzH8C2I=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=CJymyE6k0Y/3OkutpuL4Zzk7d3WdtGYgjSCz/2nn5ZG8Guv/RSp3YshQB/VtiQDHp0 Vxl+WGavq9iyKJzb3feK8fhlPycSg08IbYYO2FZKZ3sHtNHlZqzrJ3KyMOu6alyOzhTk qlKeMzJdNU2VpEpISo7YrtMjCjqH0G5tpomH/AHSV0Rm7ofTusQijmEiLZgYIMqMpdF6 uH1IyvoH214auHYRlPs9a+QAuBPymd7U3zoxz+e+ujBXiYP6+n851c0zgawYMzetP0Ng vRYfl38MKEfNzAKNAcAJPrEbpmgLthS6XPU7o3c9CzpNGOspggR9SoNFcllwOCK2fkNR h9ww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OeFp9NPr; 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-1367-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j21-20020a508a95000000b0055c349e3727si4534527edj.420.2024.01.25.06.29.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 06:29:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1367-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OeFp9NPr; 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-1367-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1367-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A004E1F21D9D for ; Thu, 25 Jan 2024 14:29:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D0DD6341C; Thu, 25 Jan 2024 14:29:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OeFp9NPr" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 8592964A94 for ; Thu, 25 Jan 2024 14:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706192982; cv=none; b=h4WMu8lHgdK+xjzuAiCjtr4Z4qg8K0PSt64NpS4/znA78VJTFRMKt50PYj36DOgh8d7U/0RUUsPQwHSCq/UICGjyaIYPfNYmRpBpJAknw02zLveW3VQtXAd/0viPU4IHjGyzq5hHaL1UnwphEcOTTlcVb3wjXt61vrSp+TDXiSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706192982; c=relaxed/simple; bh=59ygPOQFjtsMRD2i/x5xdM36As0IBxaa3nOIgflrm/U=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=chLTuXM5hOAsgNF0EC3lcEh9/DF7PlxHqS2TzIX5yGiBuF5llFu2qQpnDiJU3ujUqa0A8kXdX4SBCMKJczXN4Sz9R30LXlptogKLhEWuxM7xw68Z4wtnL4rTJvye+IxxVYp7BkE6olGQBhNNz0pMkGbDedWNw3CRJf+2Z3zj+k4= 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=OeFp9NPr; arc=none smtp.client-ip=209.85.210.178 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-pf1-f178.google.com with SMTP id d2e1a72fcca58-6da4a923b1bso4891271b3a.2 for ; Thu, 25 Jan 2024 06:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706192980; x=1706797780; 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=AKb/umfW95Q6N4Y6buXO8KuXgym5NkVsCNnutzH8C2I=; b=OeFp9NPr2/chVpIGjfMlN7j4Vv2B1MJyKlr9WPYqta12j2YLbpkBELBQbNLSc7zitF YX2BrFFbBTOIGDg5SmPJInz+UCfvWCPq5bwLX8CC3dDCHy//u1Kv1QUz/lkMICPfMI/1 BcNp3znJzfwdTtKcHB6KwPhISLvfvwRwGSPYNO/fBH/MIfY9VLpWlAhWVpI3XQnlLoRc vMujAj4Ok+M85+vISM8CsxnTh2J+M9P0y6Zk0Yj3iJbgiAg9+Ce2dDHmprWjlLZuxVUd pTt77bwIiKhsngtTGH64RQWvdRIqA/ixypcuHtVKzZf0z8148nNlBGs6cr092DuXfKiF H/IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706192980; x=1706797780; 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=AKb/umfW95Q6N4Y6buXO8KuXgym5NkVsCNnutzH8C2I=; b=dNkc/8/XZwHTYZjgDGl38AivJDDDvJutTS09t4sEKwbW0xWHcbj1BStDX5BbZg6zHg o1WvDstAr5p0V4qwc1mhCMgJ2/G3OkpBesAoiGSptvuZ3d3mcmVgxrmL65QahY0g9qrJ b+tTJDcut6GineNUiB2WuKhOba7fXFKiAPP0X1U86BUYYBJdhQCVXORYIggLahsW0Hb9 0PJ9NRyHWYo9d2ibDZMcYkhsFzF0c9+vYKba3a3J6Tj4T9mvZ+cysEAdwb4LvsarfYmQ qdOZ2oCPaW3fHT2K1+ezrdNl1M9t/oilRwuvv+EvuV5MTDvO74oCyhlzmelmo9YNL6dO Hg0w== X-Gm-Message-State: AOJu0Yy/OF4CZktCVr5aOr6INY8O9wXm7k5i7fBp85nBbaER32y66tvR idusQG2dzMYMfGq29VSujaXySt05lE2CY1CHPqrA8pmM4w9yHVTsUU7cVteh X-Received: by 2002:a05:6a20:47de:b0:19a:78bd:7761 with SMTP id ey30-20020a056a2047de00b0019a78bd7761mr722334pzb.102.1706192979602; Thu, 25 Jan 2024 06:29:39 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id x33-20020a631721000000b005ceac534e47sm13646143pgl.51.2024.01.25.06.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 06:29:38 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1 1/3] btdev: Fix not clearing le_pa_sync_handle on reset Date: Thu, 25 Jan 2024 09:29:34 -0500 Message-ID: <20240125142936.3373953-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 le_pa_sync_handle needs to be clear on reset otherwise the coce won't be able to handle Create PA Sync commands. --- emulator/btdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 65ad0a40cb43..da94f29d12aa 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -562,6 +562,7 @@ static void btdev_reset(struct btdev *btdev) btdev->le_scan_enable = 0x00; btdev->le_adv_enable = 0x00; btdev->le_pa_enable = 0x00; + btdev->le_pa_sync_handle = 0x0000; al_clear(btdev); rl_clear(btdev); -- 2.43.0