Bluetooth: Fix local name in scan rsp
authorMichał Narajowski <michal.narajowski@codecoup.pl>
Wed, 5 Oct 2016 10:28:25 +0000 (12:28 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 Oct 2016 09:52:29 +0000 (11:52 +0200)
commitcecbf3e932c1fa6df45fd6cc4fc8081a4cb45bcd
tree4df2361cce3e715ab0cfa7bf6e4bbf4a35ec7853
parent1165df0ee470930c2da73def005b1f842c2239cc
Bluetooth: Fix local name in scan rsp

Use complete name if it fits. If not and there is short name
check if it fits. If not then use shortened name as prefix
of complete name.

Signed-off-by: Michał Narajowski <michal.narajowski@codecoup.pl>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c