Bluetooth: Pass command length to LE signaling channel handlers
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 15 May 2013 07:07:15 +0000 (10:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:32 +0000 (07:05 -0800)
commit203e639ecbcc66c7c4d55f1f59bc61a1c1ca495d
treea9b9d0eab2ea3106ad6b21b6418984536a42ff1d
parenta17de2fe02b1853f115a841bf707f6a75bc6da22
Bluetooth: Pass command length to LE signaling channel handlers

The LE signaling PDU length is already calculated in the
l2cap_le_sig_channel function so we can just pass the value to the
various handler functions to avoid unnecessary recalculations (byte
order conversions). Right now the only user is the connection parameter
update procedure, but as new LE signaling operations become available
(for connection oriented channels) they will also be able to make use of
the value.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c