2012-05-10 17:36:19

by Samuel Ortiz

[permalink] [raw]
Subject: [PATCH 0/2] NFC fixes for 3.4

Hi John,

In case Linus does an rc7 and Dave takes more 3.4 fixes in, here are the 2
pending ones that I have for NFC
I sent the nfc.h export one yesterday, I'm including it here again.

So we have an nfc.h export to the kernel hearders, and a fix for large LLCP
frame fragments to be sent in the right order.

Samuel Ortiz (2):
NFC: Export nfc.h to userland
NFC: Queue I frame fragments to the LLCP sockets queue tail

include/linux/Kbuild | 1 +
net/nfc/llcp/commands.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)

--
1.7.9.1



2012-05-10 17:36:27

by Samuel Ortiz

[permalink] [raw]
Subject: [PATCH 2/2] NFC: Queue I frame fragments to the LLCP sockets queue tail

After testing our stack with large SNEP messages, we realized the fragments
were arriving in reversed order.

Signed-off-by: Samuel Ortiz <[email protected]>
---
net/nfc/llcp/commands.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/nfc/llcp/commands.c b/net/nfc/llcp/commands.c
index ef10ffc..1e02a38 100644
--- a/net/nfc/llcp/commands.c
+++ b/net/nfc/llcp/commands.c
@@ -488,7 +488,7 @@ int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,

memcpy(skb_put(pdu, frag_len), msg_ptr, frag_len);

- skb_queue_head(&sock->tx_queue, pdu);
+ skb_queue_tail(&sock->tx_queue, pdu);

lock_sock(sk);

--
1.7.9.1


2012-05-10 17:36:23

by Samuel Ortiz

[permalink] [raw]
Subject: [PATCH 1/2] NFC: Export nfc.h to userland

The netlink commands and attributes, along with the socket structure
definitions need to be exported.

Signed-off-by: Samuel Ortiz <[email protected]>
---
include/linux/Kbuild | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 3c9b616..f08e3ae 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -271,6 +271,7 @@ header-y += netfilter_ipv4.h
header-y += netfilter_ipv6.h
header-y += netlink.h
header-y += netrom.h
+header-y += nfc.h
header-y += nfs.h
header-y += nfs2.h
header-y += nfs3.h
--
1.7.9.1