linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] NFC fixes for 3.4
@ 2012-05-10 17:45 Samuel Ortiz
  2012-05-10 17:45 ` [PATCH 1/2] NFC: Export nfc.h to userland Samuel Ortiz
  2012-05-10 17:45 ` [PATCH 2/2] NFC: Queue I frame fragments to the LLCP sockets queue tail Samuel Ortiz
  0 siblings, 2 replies; 3+ messages in thread
From: Samuel Ortiz @ 2012-05-10 17:45 UTC (permalink / raw)
  To: John W. Linville
  Cc: Lauro Ramos Venancio, Aloisio Almeida Jr, Ilan Elias,
	linux-wireless, Samuel Ortiz

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] NFC: Export nfc.h to userland
  2012-05-10 17:45 [PATCH 0/2] NFC fixes for 3.4 Samuel Ortiz
@ 2012-05-10 17:45 ` Samuel Ortiz
  2012-05-10 17:45 ` [PATCH 2/2] NFC: Queue I frame fragments to the LLCP sockets queue tail Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2012-05-10 17:45 UTC (permalink / raw)
  To: John W. Linville
  Cc: Lauro Ramos Venancio, Aloisio Almeida Jr, Ilan Elias,
	linux-wireless, Samuel Ortiz

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

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] NFC: Queue I frame fragments to the LLCP sockets queue tail
  2012-05-10 17:45 [PATCH 0/2] NFC fixes for 3.4 Samuel Ortiz
  2012-05-10 17:45 ` [PATCH 1/2] NFC: Export nfc.h to userland Samuel Ortiz
@ 2012-05-10 17:45 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2012-05-10 17:45 UTC (permalink / raw)
  To: John W. Linville
  Cc: Lauro Ramos Venancio, Aloisio Almeida Jr, Ilan Elias,
	linux-wireless, Samuel Ortiz

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

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-10 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 17:45 [PATCH 0/2] NFC fixes for 3.4 Samuel Ortiz
2012-05-10 17:45 ` [PATCH 1/2] NFC: Export nfc.h to userland Samuel Ortiz
2012-05-10 17:45 ` [PATCH 2/2] NFC: Queue I frame fragments to the LLCP sockets queue tail Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).