NFC: netlink: Implement vendor command support
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Oct 2014 00:19:46 +0000 (02:19 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Jun 2015 23:21:35 +0000 (01:21 +0200)
commit9e58095f9660f88d6a2febe87d5073a6b2e9c399
tree9fc7677478b4439ad426892643de9b29eae053d7
parent8115dd5905318afcde713726064ec052b7d488cf
NFC: netlink: Implement vendor command support

Vendor commands are passed from userspace through the
NFC_CMD_VENDOR netlink command, allowing driver and hardware
specific operations implementations like for example RF tuning
or production line calibration.

Drivers will associate a set of vendor commands to a vendor
id, which could typically be an OUI. The netlink kernel
implementation will try to match the received vendor id
and sub command attributes with the registered ones. When
such match is found, the driver defined sub command routine
is called.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/uapi/linux/nfc.h
net/nfc/netlink.c