]> 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)
commitfe2bf727f644de8c071302b00358d19d265652bc
tree9fc7677478b4439ad426892643de9b29eae053d7
parent691cce42279f921c1c67595fa15d79daf2225826
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