mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
NFC: Add an LLC Core layer to HCI
The LLC layer manages modules that control the link layer protocol (such as shdlc) between HCI and an HCI driver. The driver must simply specify the required llc when it registers with HCI. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
f3e8fb5527
commit
67cccfe17d
5 changed files with 292 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <net/nfc/nfc.h>
|
||||
#include <net/nfc/hci.h>
|
||||
#include <net/nfc/llc.h>
|
||||
|
||||
#include "hci.h"
|
||||
|
||||
|
@ -821,4 +822,17 @@ void nfc_hci_recv_frame(struct nfc_hci_dev *hdev, struct sk_buff *skb)
|
|||
}
|
||||
EXPORT_SYMBOL(nfc_hci_recv_frame);
|
||||
|
||||
static int __init nfc_hci_init(void)
|
||||
{
|
||||
return nfc_llc_init();
|
||||
}
|
||||
|
||||
static void __exit nfc_hci_exit(void)
|
||||
{
|
||||
nfc_llc_exit();
|
||||
}
|
||||
|
||||
module_init(nfc_hci_init);
|
||||
module_exit(nfc_hci_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue