]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfc: Send same info for both of NFC_CMD_GET_DEVICE and NFC_EVENT_DEVICE_ADDED
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Sat, 4 Feb 2017 01:15:55 +0000 (10:15 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 1 Apr 2017 21:04:29 +0000 (23:04 +0200)
commit85a2566d70a851c85806f687b93a9559bb8a3b11
tree124a1b187a6a8833b4960c675c7246070fe6bb53
parent9728ee92f740acc65d54e6c62b9124cd0676cba9
nfc: Send same info for both of NFC_CMD_GET_DEVICE and NFC_EVENT_DEVICE_ADDED

Now, NFC_EVENT_DEVICE_ADDED doesn't send NFC_ATTR_RF_MODE. But
NFC_CMD_GET_DEVICE send.

To get NFC_ATTR_RF_MODE, we have to call NFC_CMD_GET_DEVICE just for
NFC_ATTR_RF_MODE when get NFC_EVENT_DEVICE_ADDED.

This fixes those inconsistent.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/netlink.c