]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb327759bd0572b2c9f900fab5da0e2e1df1ee364
tree9fc7677478b4439ad426892643de9b29eae053d7
parentd45cedc00b787819f3be23120917cd2ce4a73380
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