OSDN Git Service

NFC: pn533: Send ATR_REQ only if NFC_PROTO_NFC_DEP bit is set
authorMichael Thalmeier <michael.thalmeier@hale.at>
Fri, 25 Mar 2016 14:46:51 +0000 (15:46 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 9 Apr 2016 21:53:05 +0000 (23:53 +0200)
commite997ebbe46fe46bd4e8d476adca1f9b76779f270
treec5c7388e3416badd26e3c646a50cae0692f3cb44
parent03c5b534185f9844c1b5fcfdbae2adc32821ec42
NFC: pn533: Send ATR_REQ only if NFC_PROTO_NFC_DEP bit is set

Currently it is not possible to only poll for passive targets
with the pn533 driver. To change this ATR_REQ is only sent when
NFC_PROTO_NFC_DEP is explicitly requested in poll_protocols.
As most implementations (e.g. neard) poll for all protocols
that are reported to be supported by the adapter, this should
not have much of an effect on current implementations.

Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c