diff options
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, | |||
94 | target->sensf_res)) | 94 | target->sensf_res)) |
95 | goto nla_put_failure; | 95 | goto nla_put_failure; |
96 | 96 | ||
97 | if (target->is_iso15693) { | ||
98 | if (nla_put_u8(msg, NFC_ATTR_TARGET_ISO15693_DSFID, | ||
99 | target->iso15693_dsfid) || | ||
100 | nla_put(msg, NFC_ATTR_TARGET_ISO15693_UID, | ||
101 | sizeof(target->iso15693_uid), target->iso15693_uid)) | ||
102 | goto nla_put_failure; | ||
103 | } | ||
104 | |||
97 | return genlmsg_end(msg, hdr); | 105 | return genlmsg_end(msg, hdr); |
98 | 106 | ||
99 | nla_put_failure: | 107 | nla_put_failure: |