Skip to content

Commit

Permalink
NFC: nci: Add T1T support notification
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cricard13 authored and Samuel Ortiz committed Jul 22, 2014
1 parent 955164e commit bb15b21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/nfc/nci/ntf.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ static int nci_add_new_protocol(struct nci_dev *ndev,
struct rf_tech_specific_params_nfcf_poll *nfcf_poll;
__u32 protocol;

if (rf_protocol == NCI_RF_PROTOCOL_T2T)
if (rf_protocol == NCI_RF_PROTOCOL_T1T)
protocol = NFC_PROTO_JEWEL_MASK;
else if (rf_protocol == NCI_RF_PROTOCOL_T2T)
protocol = NFC_PROTO_MIFARE_MASK;
else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP)
if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE)
Expand Down

0 comments on commit bb15b21

Please sign in to comment.