summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@linux.intel.com>2012-09-13 19:10:48 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-25 02:17:25 +0400
commit8af00d48dc929442644bf68e9cd3d951d9697296 (patch)
tree4ed4b580674856dd204dccc6b5c769f5a262c00c /include/net
parent67cccfe17d1b3da1ed6c79e643c9be95ebde9642 (diff)
downloadlinux-8af00d48dc929442644bf68e9cd3d951d9697296.tar.xz
NFC: Add a nop (passthrough) llc module to llc core
This is a passthrough llc. It can be used by HCI drivers that don't need link layer control. HCI will then write directly to the driver, and driver will deliver incoming frames directly to HCI without any processing. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/nfc/llc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/nfc/llc.h b/include/net/nfc/llc.h
index 98df903f8b7d..146e053f91e7 100644
--- a/include/net/nfc/llc.h
+++ b/include/net/nfc/llc.h
@@ -24,6 +24,8 @@
#include <net/nfc/hci.h>
#include <linux/skbuff.h>
+#define LLC_NOP_NAME "nop"
+
typedef void (*rcv_to_hci_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb);
typedef int (*xmit_to_drv_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb);
typedef void (*llc_failure_t) (struct nfc_hci_dev *hdev, int err);