diff options
author | Thierry Escande <thierry.escande@linux.intel.com> | 2012-10-05 09:19:58 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-10-26 16:26:48 (GMT) |
commit | 7ad39395ab1394fc6fc8bc3693d6055ea173e226 (patch) | |
tree | ac38e7918ac30cfe48562db9596d77621cc3a03d /net/nfc/netlink.c | |
parent | 5bcf099c17323a8760620511b1b8e415c2783571 (diff) | |
download | linux-7ad39395ab1394fc6fc8bc3693d6055ea173e226.tar.xz |
NFC: Add NFC_ATTR_RF_MODE when sending device netlink properties
This is useful when getting devices to know if they're in target or
initiator mode.
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/netlink.c')
-rw-r--r-- | net/nfc/netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index c1b5285..ab9edfd 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c @@ -364,7 +364,8 @@ static int nfc_genl_send_device(struct sk_buff *msg, struct nfc_dev *dev, if (nla_put_string(msg, NFC_ATTR_DEVICE_NAME, nfc_device_name(dev)) || nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || nla_put_u32(msg, NFC_ATTR_PROTOCOLS, dev->supported_protocols) || - nla_put_u8(msg, NFC_ATTR_DEVICE_POWERED, dev->dev_up)) + nla_put_u8(msg, NFC_ATTR_DEVICE_POWERED, dev->dev_up) || + nla_put_u8(msg, NFC_ATTR_RF_MODE, dev->rf_mode)) goto nla_put_failure; return genlmsg_end(msg, hdr); |