Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1846481ybg; Thu, 4 Jun 2020 22:15:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzwOeV9X+cntWJBiUZ+4y9L32wph55LNxY/zlxtLATyRF05RB/Nq4PxbykNe1r61tWQoQp X-Received: by 2002:a50:b961:: with SMTP id m88mr7700614ede.4.1591334154780; Thu, 04 Jun 2020 22:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591334154; cv=none; d=google.com; s=arc-20160816; b=fSZ6uRQAILnDtNLnyIC/e3T5C4M2NALYzGbJ0VQRIUUDv58sQHdBdhpswORey2Le/1 BCpaEoz+6q+DUXSGFDYIFVRCg/dfQVRniAs+yXfgG1X3te6zw0g0Zhl+RnSW7RpFR91/ 2MCwMV99tB4UDUWRABEKo1hLFeCvA6I6+TOZZh7k4FvVMyqYabsbZVdG/q+2eWqsR2ru 6bvkqdWK6ZMkuVtKFzvwT/9WvnCHEXOsVZhwri4iffbi0noKPiuiHoMZld8cTAa+mEZL ijWqqOhTZu66GRYsyI5Piy22ukY3/0TrvEAKfPE4Bj6VnL+jOFC8Sw1OrDqoiwaa84Qb xJgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=Lhh4pNltSKoFFB9MqwtdB7SX06AYtpBz+czqXtfhJd8=; b=LRUbAkoW9zjbLhLBqQ3O4mBr3Tj2nyFwtLN1vBKFqBmIqhVACh6WKiCUOBT9CZmTi/ YjpYxkb1dcHBagJ6Kpm3GJzcaIoCs+DzqEA3Xuj+be57zbzx/u4T0BeBsZcaF+sKqbRN wmk1oaPy89QFc/BtEC8OwSpmCTEWCsDAEbS9U4xyPudGZxwTvQgpgBkb+yj64NVbCDzQ 3fXgCCSCJcaLvJ7/SlFlwrIrBAga8gq+tUNQx/++2cQdM6U/2cqbqK/Z++hCGL+iHz5+ IGTlUxJSrE7iy0iRb8r1N0bOsb434/17eMkHIZjVU5777bThl8BjZ0GUbnxC3xgE2MpY 7K9w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si2866603ejq.305.2020.06.04.22.15.16; Thu, 04 Jun 2020 22:15:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725986AbgFEFPQ (ORCPT + 99 others); Fri, 5 Jun 2020 01:15:16 -0400 Received: from mga09.intel.com ([134.134.136.24]:22227 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbgFEFPP (ORCPT ); Fri, 5 Jun 2020 01:15:15 -0400 IronPort-SDR: vnipzEgeBMryh8aqiIV1NYlMIfchuavbYVO53soHUZEHi5MRRuuhe8Ro02cKZZQvaA+ZU9y6Dp s2te4M2JJ+lw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2020 22:15:15 -0700 IronPort-SDR: 4A+Ep2uNZhFSIL13xRPsKpcMQpqGFbH5NsdJtnhPTOSUiRRh4XFlkKNoZH4m2Eis00fz9h+e7Y r9Et+9CsRoHw== X-IronPort-AV: E=Sophos;i="5.73,475,1583222400"; d="scan'208";a="445770204" Received: from svedanta-mobl1.amr.corp.intel.com (HELO han1-mobl3.jf.intel.com) ([10.254.69.224]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2020 22:15:15 -0700 From: Tedd Ho-Jeong An To: linux-bluetooth@vger.kernel.org Cc: Tedd Ho-Jeong An Subject: [PATCH 1/2] btp: Update connect event structure Date: Thu, 4 Jun 2020 22:15:08 -0700 Message-Id: <20200605051509.10766-1-tedd.an@linux.intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Tedd Ho-Jeong An This patch updates the connect event struct to align withe the btp spec. Opcode 0x82 - Device Connected event Controller Index: Event parameters: Address_Type (1 octet) Address (6 octets) Connection Interval (2 octets) Connection Latency (2 octets) Supervision Timeout (2 octets) This event indicates that a device was connected. --- src/shared/btp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/btp.h b/src/shared/btp.h index f0ac3a1ee..cc71a71df 100644 --- a/src/shared/btp.h +++ b/src/shared/btp.h @@ -259,6 +259,9 @@ struct btp_device_found_ev { struct btp_gap_device_connected_ev { uint8_t address_type; bdaddr_t address; + uint16_t connection_interval; + uint16_t connection_latency; + uint16_t supervision_timeout; } __packed; #define BTP_EV_GAP_DEVICE_DISCONNECTED 0x83 -- 2.25.4