Skip to content

Commit bb15b21

Browse files
cricard13Samuel Ortiz
authored andcommitted
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>
1 parent 955164e commit bb15b21

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎net/nfc/nci/ntf.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ static int nci_add_new_protocol(struct nci_dev *ndev,
166166
struct rf_tech_specific_params_nfcf_poll *nfcf_poll;
167167
__u32 protocol;
168168

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)
170172
protocol = NFC_PROTO_MIFARE_MASK;
171173
else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP)
172174
if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE)

0 commit comments

Comments
 (0)