Bluetooth: mgmt: Add local name information to read_info reply
authorJohan Hedberg <johan.hedberg@nokia.com>
Wed, 16 Mar 2011 12:29:36 +0000 (14:29 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 31 Mar 2011 17:22:54 +0000 (14:22 -0300)
commitdc4fe30b8675033e538e2dea50be8af9c75f1b6a
tree8958c01fd4b57d0680b23e67cce45e0cdf51de5e
parent1f6c6378c59f3ddac9ed89a68ccefe2611300c09
Bluetooth: mgmt: Add local name information to read_info reply

This patch adds the name of the adapter to the reply of the read_info
management command.

The management messages reserve 249 bytes for the name instead of 248
(like in the HCI spec) so that there is always a guarantee that it is
nul-terminated. That way it can safely be passed onto string
manipulation functions.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/mgmt.h
net/bluetooth/mgmt.c