Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp556207pxb; Thu, 26 Aug 2021 09:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpg43iskjLQphqCGUDKWoHL9GPHxg8E7QcaDUNtTWGlyBVyvIFiAlS0LBfFoXPH8O6xlLS X-Received: by 2002:a05:6e02:dcc:: with SMTP id l12mr3268389ilj.20.1629993810756; Thu, 26 Aug 2021 09:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629993810; cv=none; d=google.com; s=arc-20160816; b=wqiwHWP5L9NyD97iq9qDDrPJytB/Dh0KHfWvQ4lv+TXp6m+XpxzZH8yym1QFil1Cvt ajg9tjAbpHJ4Eur8sGwY7oJ0k5VQahGXAj9kJIQBoAQDKu4tTtMA4qErXVuvk3NilvJQ q+xM2hRTaK6FGX3QVI+nVYEnIDYg15sn/raxhPF56esCgoGPqQpRH6aS4k4JsuZjV/il s4ns5q/QTd2G3C4SYYVHccVPmCJWSZ8vyjSSbXRVAnGTqrZw9IHzvcTu2vECQpLi33L3 zjgxPqCPmL9bl4LCXMzuEjX56IQrYQjwGSqtwn1NkjnaE7qGH010s2jCZRq10lKlMUQq bADQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=H0VAuWF26ohP14J2Nw467dzt0bukh6I4zoWTNeqNllI=; b=jTCk1h4ESxA7I2wpkBGghNVdKcJEXUwbW4+ewl/okp6qCT0AdPwHI/axiAFnQmxUVG khSdtmxr1qz3GZpnXonVsUbEAceg7Pou2VPdtDCpPsfAAwqQ04McAxpkC18d9kf6+9rk 4DGW9tLvpoZqKOYU0gcG/BBi3oYoG2azaWaI+ODD8GDr8ZhmIvlqdWYMj2rManYrqI4J njGyC9xYiuiqJHPDTqPjQ6KHrlruLnU8nKaGZdwAQd7baT+WrkX8ymo/VWaLers6y2Ur Y9sZl+67MC3Ef6saELGOWx/Hadw8D1sVTiRbaqfzJBZo4ZbEsZq7hGDG98ZhH0yVud16 L1RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EYqWffEz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si3538708ilu.101.2021.08.26.09.03.10; Thu, 26 Aug 2021 09:03:30 -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=@google.com header.s=20161025 header.b=EYqWffEz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243033AbhHZQCN (ORCPT + 99 others); Thu, 26 Aug 2021 12:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243019AbhHZQCL (ORCPT ); Thu, 26 Aug 2021 12:02:11 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26981C061757 for ; Thu, 26 Aug 2021 09:01:24 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id b8-20020a0562141148b02902f1474ce8b7so1778558qvt.20 for ; Thu, 26 Aug 2021 09:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=H0VAuWF26ohP14J2Nw467dzt0bukh6I4zoWTNeqNllI=; b=EYqWffEz4RCw5Vao8rVpjF1DK9WTwMo6scGb5lbTm6saH30zH1X1kwg1yLCLUKkwoX NIyYb10HZKlz8MgYfustCtJmutbA8FGTUToDM8SQZ4bykWpNXOItYHXFaFQLEhHh5VTz 2/le0HUcZNP5zMOmy6k5XfS4V4+Fju9ulU9rr/89EvZucoGM5M/WSfaUkAYuk325is7/ /aiJc19KCv1H2u6ak52uM+hrX0KyWvn+6/kPDmyzOPuNMrDzWd8NVxv4fN/O9eQBhqWh ut4hgiQWuDSZDaswQ5Df/H7L01izoxTYtwXBYnSjysJY22GMmlTvj7JZTMfNsrdhzPDE 3ykg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=H0VAuWF26ohP14J2Nw467dzt0bukh6I4zoWTNeqNllI=; b=AtKRDRqsy3d+OlaecXJAuYhrfYEjHr5YQ/vEOOtO6Y1c03QAmaR+Tzwi+VAVoRLcRI WK5vVL8lLhEt96xibnJbe2rBUfRuR81IyZfyhPnFB9aP618vB4yvBPLmtyNQl7FNnluo 54S28UsZGd3S/Go+4gtkfQJUluSzt99hnQmae1JvYjXndt3+Ygq6C1iSL3CAYoKynv1M iRKiQGLpqAgxzPxWamJXEgLlQ3x0CaQqN9TXwMQIIhnz71xDP54O73XlCjoKfejpEazE W2ufaMWDLL75nv+QWu2pRxVpM46gnGHSmKhGKRrLKSEfSIDfNXrmwqLPXsy06Zq4QSXf oy1A== X-Gm-Message-State: AOAM530YyO6R1hPMDxmORYZ+Qn/c3D8dsJBhw20r0cMIUZfTWgjDCXA8 9d/BvcdZ7fTv0BB35E0riIS9JxsCzIdU6A== X-Received: from mmandlik.mtv.corp.google.com ([2620:15c:202:201:c962:4df3:558d:32ee]) (user=mmandlik job=sendgmr) by 2002:a05:6214:2609:: with SMTP id gu9mr4749419qvb.35.1629993683303; Thu, 26 Aug 2021 09:01:23 -0700 (PDT) Date: Thu, 26 Aug 2021 09:01:19 -0700 Message-Id: <20210826090050.BlueZ.v1.1.Ib85d2d946d853ea8c879dc922ad8e47587d3c603@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [BlueZ PATCH v1] adv_monitor: Change sampling period to uint16_t From: Manish Mandlik To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Manish Mandlik , apusaka@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org In the Advertisement Monitor API, RSSISamplingPeriod is an unsigned value. Change sampling_period variable to uint16_t in the code. More info: doc/advertisement-monitor-api.txt Reviewed-by: apusaka@google.com Signed-off-by: Manish Mandlik --- src/adv_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adv_monitor.c b/src/adv_monitor.c index 17f1777eb..9cbdcd23c 100644 --- a/src/adv_monitor.c +++ b/src/adv_monitor.c @@ -767,7 +767,7 @@ static bool parse_rssi_and_timeout(struct adv_monitor *monitor, int16_t l_rssi = ADV_MONITOR_UNSET_RSSI; uint16_t h_rssi_timeout = ADV_MONITOR_UNSET_TIMEOUT; uint16_t l_rssi_timeout = ADV_MONITOR_UNSET_TIMEOUT; - int16_t sampling_period = ADV_MONITOR_UNSET_SAMPLING_PERIOD; + uint16_t sampling_period = ADV_MONITOR_UNSET_SAMPLING_PERIOD; uint16_t adapter_id = monitor->app->manager->adapter_id; /* Extract RSSIHighThreshold */ -- 2.33.0.rc2.250.ged5fa647cd-goog