]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: xmit from hci ops must return 0 or negative
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Thu, 20 Sep 2012 06:59:10 +0000 (08:59 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 24 Sep 2012 22:17:27 +0000 (00:17 +0200)
commite5e88eb778cfc08e19bce14c5dce2fb029bc9335
treec05ff22fb3bda8511ec18ffc997c31e074e1d0c3
parent01e509d49e3fcc5290b82f1f68427dbdb65503b9
NFC: xmit from hci ops must return 0 or negative

xmit callback provided by a driver encapsulates upper layers
data and sends it to the hardware. So, HCI does not know the
exact amount of data being sent and thus can't handle partially
sent frames properly.

Therefore, the driver must return 0 for completely sent frame or
negative for failure.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Acked-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn544_hci.c
include/net/nfc/hci.h