diff options
author | Ilan Elias <ilane@ti.com> | 2012-01-08 11:21:53 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:08:38 -0500 |
commit | bd7e01bc7e7a90b33470173618f6f6805143cd42 (patch) | |
tree | 6ded85d2d1559bec5e0dbdbda81acd7ebb1acb0b /net/nfc/nci/ntf.c | |
parent | ca742cd9766ff519b0e927a9296e29541ee13c7b (diff) | |
download | op-kernel-dev-bd7e01bc7e7a90b33470173618f6f6805143cd42.zip op-kernel-dev-bd7e01bc7e7a90b33470173618f6f6805143cd42.tar.gz |
NFC: Complete NCI deactivate in deactivate_ntf
If a target was active, complete the NCI deactivate request
only in deactivate_ntf. Otherwise, complete it at deactivate_rsp.
Deactivate_ntf represents the actual disconnection event (sent from
the NCI controller).
Signed-off-by: Ilan Elias <ilane@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nci/ntf.c')
-rw-r--r-- | net/nfc/nci/ntf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/nfc/nci/ntf.c b/net/nfc/nci/ntf.c index b16a8dc..10682bf 100644 --- a/net/nfc/nci/ntf.c +++ b/net/nfc/nci/ntf.c @@ -280,6 +280,8 @@ static void nci_rf_deactivate_ntf_packet(struct nci_dev *ndev, /* complete the data exchange transaction, if exists */ if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags)) nci_data_exchange_complete(ndev, NULL, -EIO); + + nci_req_complete(ndev, NCI_STATUS_OK); } void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) |