diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-09-28 10:55:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-28 10:55:43 -0400 |
commit | 97ea6d0f3eb019891038cd2dfddb749d6bf219be (patch) | |
tree | 3b7d2f31ab27b4cd5546b0ab72bb9a0c3bdfd008 /include | |
parent | 8a14e8bf386434732eed6678120fe52acee6244a (diff) | |
parent | 50b78b2a6500d0e97c204c1b6c51df8c17358bbe (diff) | |
download | blackbird-op-linux-97ea6d0f3eb019891038cd2dfddb749d6bf219be.tar.gz blackbird-op-linux-97ea6d0f3eb019891038cd2dfddb749d6bf219be.zip |
Merge tag 'nfc-next-3.7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/nfc-3.0
So says Samuel Ortiz <sameo@linux.intel.com>:
The 2nd NFC pull request for 3.7.
- A couple of wrong context sleep fixes.
- An LLCP rwlock intizialisation fix.
- A missing mutex unlocking for pn533.
- LLCP raw sockets support. This is going to be used for NFC sniffing.
- A build fix for llc_shdlc. It fixes a build error triggered by code that's
living in wireless-next.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/nfc.h b/include/linux/nfc.h index 6189f27e305b..d908d17da56d 100644 --- a/include/linux/nfc.h +++ b/include/linux/nfc.h @@ -183,4 +183,15 @@ struct sockaddr_nfc_llcp { #define NFC_HEADER_SIZE 1 +/** + * Pseudo-header info for raw socket packets + * First byte is the adapter index + * Second byte contains flags + * - 0x01 - Direction (0=RX, 1=TX) + * - 0x02-0x80 - Reserved + **/ +#define NFC_LLCP_RAW_HEADER_SIZE 2 +#define NFC_LLCP_DIRECTION_RX 0x00 +#define NFC_LLCP_DIRECTION_TX 0x01 + #endif /*__LINUX_NFC_H */ |