Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2226653yba; Mon, 6 May 2019 02:00:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSRFM3H37arVW+MMqFnhUrqJxdGrnpaA7E+5Mhx4Yr6EZP+GEZuOEl0DQ6NhV7KILMh3rZ X-Received: by 2002:a63:fd50:: with SMTP id m16mr9162788pgj.192.1557133259312; Mon, 06 May 2019 02:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557133259; cv=none; d=google.com; s=arc-20160816; b=SKKzrblCWn03FwbiK3FqXeRVamJa/eE4n9W/LfrX8Urgcks3rCosrMIOlzKy1lzC6p z/M84G2hBScVqkqneMlHU6IH4kYgxfbQ+DKC7KvpM2eO46UfMv3pzplBl6vQcXNeqxgH dNTKoiOKnSPITMoagcf7lvqw+tiHLjynu6OX+o9ZGTDazDnP2XtVEorrk7eXWm70fqJ8 n3DfavhHZXi74VoOyckCbBj8ej0CTeioyWSNR+67OJuWACWXH4liL0k8q5ImE9FV6SsT 8geCgV56HFnvMnrTdQPf8GSHez2bUNCeMRRFcl+p55c+wqCghrHL3nsrfWEnVwzorPL9 a4yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=rP+LOMch4fGdF0OtuiKSmBcSuEaKCPOmRQy3e2+vN54=; b=sz1bdXq0pB8P4veka1lnK5kzoM/zyxsD44hyAc8BA4qugMs1FUmPTOLj+4bLZzMJpl so+nqcYgkEmtsAVWYonJtLAQcOIgvWBuFVg+rNqLJdY0eS8TkXZhsXP9IsRla+MTJci4 kcw02qYVkR+azJkadr0si2JQTxsZU7dHVtKhWlwz1D3vcyO5nl7YOojJMQ+g2fN8EpLR s3yzFds5eqbXde0pgfFIHH49TF/uMZpJiXcvOEWsdeRtitBSj34LG1YT/SWe8M0BNQu1 ygN+ayu1AXBaflF7PB+b9LUQGlKijqmkyW4hCYBs0zuyFHT71dBOmV5qIYQjjouKrD3C 3pBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19si13906893pfh.147.2019.05.06.02.00.31; Mon, 06 May 2019 02:00:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725861AbfEFJA2 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 6 May 2019 05:00:28 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:57317 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbfEFJA2 (ORCPT ); Mon, 6 May 2019 05:00:28 -0400 Received: from marcel-macpro.fritz.box (p4FF9FD9B.dip0.t-ipconnect.de [79.249.253.155]) by mail.holtmann.org (Postfix) with ESMTPSA id 1DC85CEE9A; Mon, 6 May 2019 11:08:41 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCH] v7 Add support for LE ping feature From: Marcel Holtmann In-Reply-To: <6AFF54953E047B42BC60A96154D42C5CD16F45@BGSMSX101.gar.corp.intel.com> Date: Mon, 6 May 2019 11:00:26 +0200 Cc: "linux-bluetooth@vger.kernel.org" Content-Transfer-Encoding: 8BIT Message-Id: <09C2920E-805F-4DB2-8C2D-C338650604AD@holtmann.org> References: <1556597465-21783-1-git-send-email-spoorthix.k@intel.com> <6AFF54953E047B42BC60A96154D42C5CD16F45@BGSMSX101.gar.corp.intel.com> To: "K, SpoorthiX" X-Mailer: Apple Mail (2.3445.104.8) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Spoorthi, > Thanks for your valuable comments. > I have removed the extra lines wherever mentioned in my latest patch sent few minutes back. > But I clearly did not understand the comment > ---> On hci_conn creation the hcon->auth_payload_time needs to be set to DEFAULT_AUTH_PAYLOAD_TIMEOUT as well. > Could you please explain why this needs to be set after connection as it is sent as a command parameter "hdev->auth_payload_timeout" is nothing but “DEFAULT_AUTH_PAYLOAD_TIMEOUT" when you initialize the hci_conn structure you have to fill it with the correct default values. The auth payload is not 0x0000 in this case since the controller will already have one that it uses as default. The specification clearly states that Authenticated_Payload_Timeout Default = 0x0BB8 (30 s). This means that one encryption has been activated the LE Ping procedure is active with the default 30s no matter if you send the HCI Write Authenticated Payload Timeout command or not. Regards Marcel