Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp695667pxj; Wed, 16 Jun 2021 11:23:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA4hoBG97zSnA5SGdXba6gYPGHVD6iFsBI8Pp9WfyQZLjyRtJQYuJiK1VgMFlaH4V4GHEP X-Received: by 2002:a5d:934d:: with SMTP id i13mr583541ioo.164.1623867828273; Wed, 16 Jun 2021 11:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623867828; cv=none; d=google.com; s=arc-20160816; b=PUtdYtg6F29z2mGP/Dbr8SqXqwt7ADiebcM+cNnsWJBqt4ISncmgGJKs8Lk39773rC 1ruX4FCdaEn/xb+3CU8UXZ05/RCMBh22HyABmhSLQGc7T9OYQUArNXMX/0mGj+ZXDCOc i6Rs4eVvAGTZNOZ602U3XnN2QMnZuwMo/PzSRi7aVBV2e6rv/goaVIhjAdAG5EbQ/vdy dhvA4jkzW+vuiZaCWTXSE7xomDVegk80jncHlfvenwRD2GT1oSpa1aRqDmhaBCLgM+Oe 0VxiOxktypYsejeuXoDrGZ86S8d+Id6qJGvNqtLDCXwGfXJzMFTHxjHA+pBzdcrbu/Ax iwSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Nr+VYcU+b1B3PVHyuSk2+yV54kISvfCqGmxXpvEOah4=; b=YCm3KIaSn8yYrkg/rRwq6EOu8jE1Gbc5Q0hSuVe2H4a/xuAb9v1+y3MBtPr9U5VBVH bEInJm8kFxgPKdhW/VvBvdYDUjy/qtt9+fheHxu1YuXsM8uR5KpFUMwFPz9ktXT5Ytl6 HeUy8VFJZEdDwb9OLp1HfO5+XzMmPGKWaFKjwbYcAFY//u8eOBCe6lS+wC9w3qljJNr7 vqiFE05bmU/GjlY19QzgZ+L9Zp7cf8zWDoUdDIpWsekUdssoTawPTUEXKim+WwNrgGJx QTkkhmNzWNj/HqNGA876H/FTaXP6Hfzrj2YOBnTTEEY1P67wVsEIFlSbzzQZap4aBfUQ PJAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=T+yTAqA3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si3285881jat.42.2021.06.16.11.23.22; Wed, 16 Jun 2021 11:23:48 -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; dkim=pass header.i=@chromium.org header.s=google header.b=T+yTAqA3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232706AbhFPMoq (ORCPT + 99 others); Wed, 16 Jun 2021 08:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbhFPMom (ORCPT ); Wed, 16 Jun 2021 08:44:42 -0400 Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com [IPv6:2607:f8b0:4864:20::92a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580DAC061574 for ; Wed, 16 Jun 2021 05:42:34 -0700 (PDT) Received: by mail-ua1-x92a.google.com with SMTP id o3so714654uaw.5 for ; Wed, 16 Jun 2021 05:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nr+VYcU+b1B3PVHyuSk2+yV54kISvfCqGmxXpvEOah4=; b=T+yTAqA3blP2VKUJTg5xg0D1MGMuvNhG7bQNeJsZDLgZuEFxseWlVQL+aRkY7i84Dv JW1vpyFr6qzjn6VmoU+EVbMczbiybxc/HqXJB7jiUI0/2Pqpy1rUMSOhT3FIBgWSmszT P+cwMC1dvaeJ7UFpwOD/vufr+CqXAUxFHcc7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nr+VYcU+b1B3PVHyuSk2+yV54kISvfCqGmxXpvEOah4=; b=Umjhr3z6ezavJVlsFWQL3mys9YqbP1NWwbOM7dQUFVKFwWhcqAodxILxF0CNDmTlBj 8YjOpcCCBWfucs1qFyLdSdicRS/ypjRBtS02v7WNtiPcCkQEEW7vu+xhUOuMP5ap5x72 3n6PHU1GPBTT1iyBnIF8TQkI2BXUFV6JK6NiENt8udjNdeMtOQ/xGqn5zKZMqghvzSNK 5M8ckS5r8DNEsg7nBddXMDeYXbZbQ3jtj11sirtgHdJCwRhs8j/QXZVp/lDrRBp9gSbh +VGvGLB99FQWEhSa1RSiXJeRj2zZ42EkQ2D5XAFNjFb80gUfh/thCD0/RGA7BA8vtUkJ 48hw== X-Gm-Message-State: AOAM533vdG8//HHX2+S/Ew/pYYdc8wGWQTyCG7bHCcI5pQg45940czbK 7MGKxVx2/ki02+rzFw4D71LcV96gdWK1oQ== X-Received: by 2002:a9f:3010:: with SMTP id h16mr4318571uab.29.1623847353156; Wed, 16 Jun 2021 05:42:33 -0700 (PDT) Received: from alain.c.googlers.com.com (162.116.74.34.bc.googleusercontent.com. [34.74.116.162]) by smtp.gmail.com with ESMTPSA id f6sm308399vkb.2.2021.06.16.05.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 05:42:32 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud , Yu Liu Subject: [Bluez PATCH v2] monitor: Adding missing device found flag in the parser Date: Wed, 16 Jun 2021 12:42:29 +0000 Message-Id: <20210616124229.1059905-1-alainm@chromium.org> X-Mailer: git-send-email 2.32.0.272.g935e593368-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org A new flag was added to the kernel implementation of the Device Found event, but had not been added to the parser leading to an "Unknown device flag" error in btmon. Reviewed-by: Yu Liu Signed-off-by: Alain Michaud --- Changes in v2: - Addressing Marcel's feedback monitor/packet.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index 82513a63c..5a928c296 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -12030,9 +12030,10 @@ static void mgmt_print_io_capability(uint8_t capability) } static const struct bitfield_data mgmt_device_flags_table[] = { - { 0, "Confirm Name" }, - { 1, "Legacy Pairing" }, - { 2, "Not Connectable" }, + { 0, "Confirm Name" }, + { 1, "Legacy Pairing" }, + { 2, "Not Connectable" }, + { 3, "Connection Locally Initiated" }, { } }; -- 2.32.0.272.g935e593368-goog