mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 10:28:57 +00:00
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>
This commit is contained in:
parent
955164ebb8
commit
bb15b2170c
@ -166,7 +166,9 @@ static int nci_add_new_protocol(struct nci_dev *ndev,
|
|||||||
struct rf_tech_specific_params_nfcf_poll *nfcf_poll;
|
struct rf_tech_specific_params_nfcf_poll *nfcf_poll;
|
||||||
__u32 protocol;
|
__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;
|
protocol = NFC_PROTO_MIFARE_MASK;
|
||||||
else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP)
|
else if (rf_protocol == NCI_RF_PROTOCOL_ISO_DEP)
|
||||||
if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE)
|
if (rf_tech_and_mode == NCI_NFC_A_PASSIVE_POLL_MODE)
|
||||||
|
Loading…
Reference in New Issue
Block a user