diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-05-25 16:35:40 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-07-22 18:49:36 -0400 |
commit | bb15b2170c80b96ea78c0f8c8a6e0ed75fa91c10 (patch) | |
tree | 7a73a7574b49f7b323741010e44edf2b7c0b2db7 /net/nfc/nci | |
parent | 955164ebb8f8d337ca5b8540ae1f9d4def7f0ad0 (diff) |
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>
Diffstat (limited to 'net/nfc/nci')
-rw-r--r-- | net/nfc/nci/ntf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/nfc/nci/ntf.c b/net/nfc/nci/ntf.c index f8f6af231381..df91bb95b12a 100644 --- a/net/nfc/nci/ntf.c +++ b/net/nfc/nci/ntf.c | |||
@@ -166,7 +166,9 @@ static int nci_add_new_protocol(struct nci_dev *ndev, | |||
166 | struct rf_tech_specific_params_nfcf_poll *nfcf_poll; | 166 | struct rf_tech_specific_params_nfcf_poll *nfcf_poll; |
167 | __u32 protocol; | 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 | protocol = NFC_PROTO_MIFARE_MASK; | 172 | protocol = NFC_PROTO_MIFARE_MASK; |
171 | else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP) | 173 | else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP) |
172 | if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE) | 174 | if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE) |