Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ff5462b authored by Julien Lefrique's avatar Julien Lefrique Committed by Samuel Ortiz
Browse files

NFC: NCI: Handle Discovery deactivation type



When the deactivation type reported by RF_DEACTIVATE_NTF is Discovery, go in
RFST_DISCOVERY state. The NFCC stays in Poll mode and/or Listen mode.

Signed-off-by: default avatarJulien Lefrique <lefrique@marvell.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 966efbfb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -681,6 +681,9 @@ static void nci_rf_deactivate_ntf_packet(struct nci_dev *ndev,
		nci_data_exchange_complete(ndev, NULL, -EIO);

	nci_clear_target_list(ndev);
	if (ntf->type == NCI_DEACTIVATE_TYPE_DISCOVERY)
		atomic_set(&ndev->state, NCI_DISCOVERY);
	else
		atomic_set(&ndev->state, NCI_IDLE);
	nci_req_complete(ndev, NCI_STATUS_OK);
}