Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFC: nci: Add T1T support notification

Add T1T matching with Jewel during notification.
It was causing "the target found does not have the desired protocol"
to show up.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Christophe Ricard and committed by
Samuel Ortiz
bb15b217 955164eb

+3 -1
+3 -1
net/nfc/nci/ntf.c
··· 166 166 struct rf_tech_specific_params_nfcf_poll *nfcf_poll; 167 167 __u32 protocol; 168 168 169 - if (rf_protocol == NCI_RF_PROTOCOL_T2T) 169 + if (rf_protocol == NCI_RF_PROTOCOL_T1T) 170 + protocol = NFC_PROTO_JEWEL_MASK; 171 + else if (rf_protocol == NCI_RF_PROTOCOL_T2T) 170 172 protocol = NFC_PROTO_MIFARE_MASK; 171 173 else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP) 172 174 if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE)