Bluetooth: mgmt: Fix count parameter in get_connections reply
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 07:52:28 +0000 (09:52 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:02 +0000 (13:07 +0200)
commit60fc5fb66efa0bcbe028637206ed59df8cd4ac19
treea44a49c3003eb7377e1428c276e26895cb029c41
parentb3fb611ec7b76048cb14600e9a5a9b57e5d913da
Bluetooth: mgmt: Fix count parameter in get_connections reply

This patch fixes the count parameter in the Get Connections reply
message. We cannot know the right number until iterating through all
connections so set the parameter value only after the loop.

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