Skip to content

Commit d330905

Browse files
cricard13Samuel Ortiz
authored andcommitted
NFC: hci: Extend command execution delay
Extend it up to the maximum FWI value 4949 ms defined by the ISO14443-3 specification. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 6895730 commit d330905

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎net/nfc/hci/command.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
#include "hci.h"
2828

29+
#define MAX_FWI 4949
30+
2931
static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
3032
const u8 *param, size_t param_len,
3133
data_exchange_cb_t cb, void *cb_context)
@@ -37,7 +39,7 @@ static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
3739
* for all commands?
3840
*/
3941
return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_COMMAND, cmd,
40-
param, param_len, cb, cb_context, 3000);
42+
param, param_len, cb, cb_context, MAX_FWI);
4143
}
4244

4345
/*
@@ -82,7 +84,7 @@ static int nfc_hci_execute_cmd(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
8284
NFC_HCI_HCP_COMMAND, cmd,
8385
param, param_len,
8486
nfc_hci_execute_cb, &hcp_ew,
85-
3000);
87+
MAX_FWI);
8688
if (hcp_ew.exec_result < 0)
8789
return hcp_ew.exec_result;
8890

0 commit comments

Comments
 (0)