summaryrefslogtreecommitdiff
path: root/src/netlink.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-06-01 13:32:02 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-06-01 13:32:02 +0200
commit3c6bbd8e5ec41408e10aa78755fdea9e35dde616 (patch)
treec622d79e9cc1f2d441a083b276f304fb4ba7c2c7 /src/netlink.c
parentb20e378951bd4880b5acfb171f75ee198ec74209 (diff)
downloadneard-3c6bbd8e5ec41408e10aa78755fdea9e35dde616.tar.gz
neard-3c6bbd8e5ec41408e10aa78755fdea9e35dde616.tar.bz2
neard-3c6bbd8e5ec41408e10aa78755fdea9e35dde616.zip
netlink: Pass IM protocols through NFC_ATTR_PROTOCOLS as well
This way the polling loop will also work with older kernels.
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index b7e918d..a9b590c 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -240,8 +240,10 @@ int __near_netlink_start_poll(int idx,
}
NLA_PUT_U32(msg, NFC_ATTR_DEVICE_INDEX, idx);
- if (im_protocols != 0)
+ if (im_protocols != 0) {
NLA_PUT_U32(msg, NFC_ATTR_IM_PROTOCOLS, im_protocols);
+ NLA_PUT_U32(msg, NFC_ATTR_PROTOCOLS, im_protocols);
+ }
if (tm_protocols != 0)
NLA_PUT_U32(msg, NFC_ATTR_TM_PROTOCOLS, tm_protocols);