NFC: Complete NCI deactivate in deactivate_ntf
authorIlan Elias <ilane@ti.com>
Sun, 8 Jan 2012 09:21:53 +0000 (11:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:08:38 +0000 (14:08 -0500)
commitbd7e01bc7e7a90b33470173618f6f6805143cd42
tree6ded85d2d1559bec5e0dbdbda81acd7ebb1acb0b
parentca742cd9766ff519b0e927a9296e29541ee13c7b
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>
net/nfc/nci/ntf.c
net/nfc/nci/rsp.c