nfc: netlink: Add capability to reply to vendor_cmd with data
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 19 Aug 2015 19:26:43 +0000 (21:26 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 20 Aug 2015 20:00:11 +0000 (22:00 +0200)
commit29e76924cf087bc6a9114a9244828fd13ae959bb
tree495b6ebf26ac799865f781c859ece692cc496662
parent5a9e0ffc0f128ecdf7c770f76c268e4f9f3c9118
nfc: netlink: Add capability to reply to vendor_cmd with data

A proprietary vendor command may send back useful data to the user
application.

For example, the field level applied on the NFC router antenna.

Still based on net/wireless/nl80211.c implementation,
add nfc_vendor_cmd_alloc_reply_skb and nfc_vendor_cmd_reply in
order to send back over netlink data generated by a proprietary
command.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/nfc.h
net/nfc/netlink.c