NFC: Select CRC_CCITT for SHDLC link layer of HCI based drivers
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 3 May 2012 05:12:48 +0000 (07:12 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 May 2012 21:27:28 +0000 (17:27 -0400)
The SHDLC link layer of HCI based drivers uses CRC-CCITT and thus
needs to select that kernel option.

Otherwise it ends up with this linking error:

net/built-in.o: In function `nfc_shdlc_add_len_crc':
net/nfc/hci/shdlc.c:113: undefined reference to `crc_ccitt'

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/hci/Kconfig

index 17213a6..fd67f51 100644 (file)
@@ -9,6 +9,7 @@ config NFC_HCI
 
 config NFC_SHDLC
        depends on NFC_HCI
+       select CRC_CCITT
        bool "SHDLC link layer for HCI based NFC drivers"
        default n
        ---help---