summaryrefslogtreecommitdiffstats
path: root/net/nfc/llcp/commands.c
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@linux.intel.com>2012-11-27 15:44:24 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-01-10 00:44:24 +0100
commit2c2d45bdcb7063ef58dc2c27d72026c394a8f584 (patch)
tree8f2e39c41056cfbd5465720dd03147e217dc7dd6 /net/nfc/llcp/commands.c
parente7f767a7d9f809c494bfffffeda2bbdbfec110b4 (diff)
downloadblackbird-op-linux-2c2d45bdcb7063ef58dc2c27d72026c394a8f584.tar.gz
blackbird-op-linux-2c2d45bdcb7063ef58dc2c27d72026c394a8f584.zip
NFC: Add support for SO_TIMESTAMP LLCP socket option
Set timestamp in sent and received sk_buffs. timestamp is then put in msghdr structure in llcp_sock_recvmsg(). Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/llcp/commands.c')
-rw-r--r--net/nfc/llcp/commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/nfc/llcp/commands.c b/net/nfc/llcp/commands.c
index df24be48d4da..c6bc3bd95052 100644
--- a/net/nfc/llcp/commands.c
+++ b/net/nfc/llcp/commands.c
@@ -304,6 +304,8 @@ int nfc_llcp_send_symm(struct nfc_dev *dev)
skb = llcp_add_header(skb, 0, 0, LLCP_PDU_SYMM);
+ __net_timestamp(skb);
+
nfc_llcp_send_to_raw_sock(local, skb, NFC_LLCP_DIRECTION_TX);
return nfc_data_exchange(dev, local->target_idx, skb,
OpenPOWER on IntegriCloud