mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
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 <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
fa6fbadea5
commit
8a49943f5b
@ -706,6 +706,10 @@ int nci_hci_dev_session_init(struct nci_dev *ndev)
|
|||||||
/* Restore gate<->pipe table from some proprietary location. */
|
/* Restore gate<->pipe table from some proprietary location. */
|
||||||
r = ndev->ops->hci_load_session(ndev);
|
r = ndev->ops->hci_load_session(ndev);
|
||||||
} else {
|
} else {
|
||||||
|
r = nci_hci_clear_all_pipes(ndev);
|
||||||
|
if (r < 0)
|
||||||
|
goto exit;
|
||||||
|
|
||||||
r = nci_hci_dev_connect_gates(ndev,
|
r = nci_hci_dev_connect_gates(ndev,
|
||||||
ndev->hci_dev->init_data.gate_count,
|
ndev->hci_dev->init_data.gate_count,
|
||||||
ndev->hci_dev->init_data.gates);
|
ndev->hci_dev->init_data.gates);
|
||||||
|
Loading…
Reference in New Issue
Block a user