From patchwork Wed Jan 15 00:52:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Greer X-Patchwork-Id: 3489201 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C7C31C02DC for ; Wed, 15 Jan 2014 01:00:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A1D9201F2 for ; Wed, 15 Jan 2014 01:00:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54998201F0 for ; Wed, 15 Jan 2014 01:00:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751891AbaAOBAY (ORCPT ); Tue, 14 Jan 2014 20:00:24 -0500 Received: from p3plsmtpa06-10.prod.phx3.secureserver.net ([173.201.192.111]:42785 "EHLO p3plsmtpa06-10.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbaAOBAY (ORCPT ); Tue, 14 Jan 2014 20:00:24 -0500 Received: from blue.animalcreek.com ([68.3.92.114]) by p3plsmtpa06-10.prod.phx3.secureserver.net with id E0sM1n00K2U2ZYs010sM3T; Tue, 14 Jan 2014 17:52:22 -0700 Received: from blue.animalcreek.com (localhost [127.0.0.1]) by blue.animalcreek.com (Postfix) with ESMTP id 8175365F94; Tue, 14 Jan 2014 17:52:21 -0700 (MST) From: "Mark A. Greer" To: Samuel Ortiz , Lauro Ramos Venancio , Aloisio Almeida Jr , Thierry Escande Cc: linux-wireless@vger.kernel.org, linux-nfc@lists.01.org, "Mark A. Greer" Subject: [PATCH 3/3] NFC: iso15693 - Add netlink support for ISO/IEC 15693 Date: Tue, 14 Jan 2014 17:52:11 -0700 Message-Id: <1389747131-2577-4-git-send-email-mgreer@animalcreek.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1389747131-2577-1-git-send-email-mgreer@animalcreek.com> References: <1389747131-2577-1-git-send-email-mgreer@animalcreek.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ISO/IEC 15693 support by having netlink push the 1-byte DSFID and 8-byte UID tag information upstream. Signed-off-by: Mark A. Greer --- net/nfc/netlink.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index ebbf6fb..43cb1c1 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c @@ -94,6 +94,14 @@ static int nfc_genl_send_target(struct sk_buff *msg, struct nfc_target *target, target->sensf_res)) goto nla_put_failure; + if (target->is_iso15693) { + if (nla_put_u8(msg, NFC_ATTR_TARGET_ISO15693_DSFID, + target->iso15693_dsfid) || + nla_put(msg, NFC_ATTR_TARGET_ISO15693_UID, + sizeof(target->iso15693_uid), target->iso15693_uid)) + goto nla_put_failure; + } + return genlmsg_end(msg, hdr); nla_put_failure: