From: Thierry Escande Date: Wed, 26 Sep 2012 16:16:44 +0000 (+0200) Subject: NFC: LLCP raw socket support X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~31^2^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4463523bef98ff827a89cf8219db7dfac4350241;p=pandora-kernel.git NFC: LLCP raw socket support This adds support for socket of type SOCK_RAW to LLCP. sk_buff are copied and sent to raw sockets with a 2 bytes extra header: The first byte header contains the nfc adapter index. The second one contains flags: - 0x01 - Direction (0=RX, 1=TX) - 0x02-0x80 - Reserved A raw socket has to be explicitly bound to a nfc adapter. This is achieved by specifying the adapter index to be bound to in the dev_idx field of the sockaddr_nfc_llcp struct passed to bind(). Signed-off-by: Thierry Escande Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed