diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2014-01-15 01:52:11 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-02-16 23:49:53 +0100 |
commit | f5f6872ed2d9a33f99013f6bad734b7f0684da23 (patch) | |
tree | 26805cc2d5efe82d1270342ee1a74580d33967c7 /net/nfc/netlink.c | |
parent | NFC: digital: Add Digital Layer support for ISO/IEC 15693 (diff) | |
download | linux-f5f6872ed2d9a33f99013f6bad734b7f0684da23.tar.xz linux-f5f6872ed2d9a33f99013f6bad734b7f0684da23.zip |
NFC: Add netlink support for ISO/IEC 15693
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 <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/netlink.c')
-rw-r--r-- | net/nfc/netlink.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index ebbf6fb88b35..43cb1c17e267 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: |