]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: Fix target mode p2p link establishment
authorArron Wang <arron.wang@intel.com>
Thu, 14 Nov 2013 09:03:41 +0000 (17:03 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Jan 2014 02:31:32 +0000 (03:31 +0100)
commitbd0c64367ce49530f4d3b317d9bf17e37b9368d6
tree7f5c115d57ea99951413eb2894b9b50ff485d0de
parentcf132d8071c0e5d2c55581d055f95ed74573be95
NFC: Fix target mode p2p link establishment

With commit 620631028250b29b, we set the active_target pointer from
nfc_dep_link_is_up() in order to support the case where the target
detection and the DEP link setting are done atomically by the driver.
That can only happen in initiator mode, so we need to check for that
otherwise we fail to bring a p2p link in target mode.

Signed-off-by: Arron Wang <arron.wang@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/core.c