Skip to contentSkip to conversation

NFC: Select CRC_CCITT for SHDLC link layer of HCI based drivers

PATCH In review Marcel Holtmann 3 participants 4 messages May 3, 2012 – May 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 NFC: Select CRC_CCITT for SHDLC link layer of HCI based drivers

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'

---
 net/nfc/hci/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/nfc/hci/Kconfig +1 -0
index 17213a6..fd67f51 100644
@@ -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---
Signature · 1 line
1.7.7.6
#1 lore raw

Was there a [PATCH 1/2]? I didn't get it...

Quoted 33 lines · Marcel Holtmann

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'

---
 net/nfc/hci/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/nfc/hci/Kconfig +1 -0
index 17213a6..fd67f51 100644
@@ -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---
Signature · 6 lines
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#2 lore raw

Hi John,

Quoted 1 line

Was there a [PATCH 1/2]? I didn't get it...

yes, but it was a Bluetooth one :)

Regards

Marcel

Acked-by on v1 2/2
#3 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 9 lines · Marcel Holtmann

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'

Cheers,
Samuel.