NFC: The core part should generate the target index
The target index can be used by userspace to uniquely identify a target and thus should be kept unique, per NFC adapter. Moreover, some protocols do not provide a logical index when discovering new targets, so we have to generate one for them. For NCI or pn533 to fetch their logical index, we added a logical_idx field to the target structure. Signed-off-by:Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- include/net/nfc/nfc.h 2 additions, 0 deletionsinclude/net/nfc/nfc.h
- net/nfc/core.c 5 additions, 0 deletionsnet/nfc/core.c
- net/nfc/nci/core.c 1 addition, 1 deletionnet/nfc/nci/core.c
- net/nfc/nci/ntf.c 6 additions, 5 deletionsnet/nfc/nci/ntf.c
- net/nfc/rawsock.c 6 additions, 0 deletionsnet/nfc/rawsock.c
Please register or sign in to comment