Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe Ricard and committed by
Samuel Ortiz
d330905d 68957303

+4 -2
+4 -2
net/nfc/hci/command.c
··· 26 26 27 27 #include "hci.h" 28 28 29 + #define MAX_FWI 4949 30 + 29 31 static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, 30 32 const u8 *param, size_t param_len, 31 33 data_exchange_cb_t cb, void *cb_context) ··· 39 37 * for all commands? 40 38 */ 41 39 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_COMMAND, cmd, 42 - param, param_len, cb, cb_context, 3000); 40 + param, param_len, cb, cb_context, MAX_FWI); 43 41 } 44 42 45 43 /* ··· 84 82 NFC_HCI_HCP_COMMAND, cmd, 85 83 param, param_len, 86 84 nfc_hci_execute_cb, &hcp_ew, 87 - 3000); 85 + MAX_FWI); 88 86 if (hcp_ew.exec_result < 0) 89 87 return hcp_ew.exec_result; 90 88