Skip to content

Commit 8a49943

Browse files
cricard13Samuel Ortiz
authored andcommitted
NFC: nci: Call nci_hci_clear_all_pipes at HCI initial activation.
When session_id is filled to 0xff, the pipe configuration is probably incorrect and needs to be cleared. Signed-off-by: Christophe Ricard <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
1 parent fa6fbad commit 8a49943

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

net/nfc/nci/hci.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,10 @@ int nci_hci_dev_session_init(struct nci_dev *ndev)
706706
/* Restore gate<->pipe table from some proprietary location. */
707707
r = ndev->ops->hci_load_session(ndev);
708708
} else {
709+
r = nci_hci_clear_all_pipes(ndev);
710+
if (r < 0)
711+
goto exit;
712+
709713
r = nci_hci_dev_connect_gates(ndev,
710714
ndev->hci_dev->init_data.gate_count,
711715
ndev->hci_dev->init_data.gates);

0 commit comments

Comments
 (0)