From 3c6bbd8e5ec41408e10aa78755fdea9e35dde616 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 1 Jun 2012 13:32:02 +0200 Subject: [PATCH] netlink: Pass IM protocols through NFC_ATTR_PROTOCOLS as well This way the polling loop will also work with older kernels. --- src/netlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.7.4