From patchwork Thu Jun 15 17:46:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Greer X-Patchwork-Id: 9789469 X-Patchwork-Delegate: sameo@linux.intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B594A60231 for ; Thu, 15 Jun 2017 17:46:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA2192862C for ; Thu, 15 Jun 2017 17:46:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EDA628662; Thu, 15 Jun 2017 17:46:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEC5A2862C for ; Thu, 15 Jun 2017 17:46:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751956AbdFORqY (ORCPT ); Thu, 15 Jun 2017 13:46:24 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:40793 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893AbdFORqW (ORCPT ); Thu, 15 Jun 2017 13:46:22 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7B9E12081F; Thu, 15 Jun 2017 13:46:21 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 15 Jun 2017 13:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=animalcreek.com; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=1Zs 4ENi31ZR4YPkPPBUbi9mFfXcSjRVWjdYBQTFwRkg=; b=bkAHnrfXZ1V+Sw217M3 CnJPND24SY7yYoG9O3XLT144ywjCnRM2kLV7av776XGnCRh6r/SVsN4Wl9GRP1yB 7rXsmOqfEg+E4quZ2+qBWXvHVN23g/rlmjZNpBfcdX2cTMYCHA/RxqUyepNBm9o/ oef+Oc8T6faj/g3tP56Pe0Ec= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=1Zs4ENi31ZR4YPkPPBUbi9mFfXcSjRVWjdYBQTFwR kg=; b=KLlKBrgGi3Fh1I0Zf3d0swE6SxgCqB2+Jq7xYmhGO71e7S5MGIXwVvuqy LoQQMLRmt4INatUch2gGcBftmwJY25deKt4tsW8tkQGsa+uLZMBZss4Czt6d5hoz FKOnCo7JTeCg+cU6QMwpduChr/lVdmujlrrYMJSJd+6OkSl+jNOi5i5NZwzyKuG7 oePU3qMEQVqGrZ6d0xMXpXYcpFZJpbATa03SdFaTuZnlSu5P7YFrHihVkprQUlX6 R+hbeoxlB2LSoWHT+E6EbWMxP5NoXBhCgEoTF7SM21nSssaCWzlHwo/kPpFJZ/M1 JOIMaH2g6kkDpoZXEka7EqA5kFWkw== X-ME-Sender: X-Sasl-enc: SEUKRDw9AsMAbrR31N404t8v2ZQ3JsHCwHCsA53zbxXL 1497548781 Received: from blue.animalcreek.com (ip68-2-81-12.ph.ph.cox.net [68.2.81.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 3F9807E99A; Thu, 15 Jun 2017 13:46:21 -0400 (EDT) Received: from blue.animalcreek.com (localhost [127.0.0.1]) by blue.animalcreek.com (Postfix) with ESMTP id 8A5F3A202D8; Thu, 15 Jun 2017 10:46:20 -0700 (MST) From: Mark Greer To: Samuel Ortiz Cc: linux-wireless@vger.kernel.org, linux-nfc@lists.01.org, Mark Greer Subject: [PATCH 2/3] NFC: digital: NFC-DEP Target WT(nfcdep,max) is now 14 Date: Thu, 15 Jun 2017 10:46:16 -0700 Message-Id: <20170615174617.1817-3-mgreer@animalcreek.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170615174617.1817-1-mgreer@animalcreek.com> References: <20170615174617.1817-1-mgreer@animalcreek.com> Organization: Animal Creek Technologies, Inc. Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Version 1.1 of the NFC Forum's NFC Digital Protocol Technical Specification dated 2014-07-14 specifies that the NFC-DEP Protocol's Target WT(nfcdep,max) value is 14. In version 1.0 it was 8 so change the value in the Linux NFC-DEP Protocol code accordingly. Signed-off-by: Mark Greer --- net/nfc/digital_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/digital_dep.c b/net/nfc/digital_dep.c index f864ce19e13d..5bb241bb3490 100644 --- a/net/nfc/digital_dep.c +++ b/net/nfc/digital_dep.c @@ -151,7 +151,7 @@ static const u8 digital_payload_bits_map[4] = { * 0 <= wt <= 14 (given by the target by the TO field of ATR_RES response) */ #define DIGITAL_NFC_DEP_IN_MAX_WT 14 -#define DIGITAL_NFC_DEP_TG_MAX_WT 8 +#define DIGITAL_NFC_DEP_TG_MAX_WT 14 static const u16 digital_rwt_map[DIGITAL_NFC_DEP_IN_MAX_WT + 1] = { 100, 101, 101, 102, 105, 110, 119, 139, 177, 255,