projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bdaae4
)
Bluetooth: mgmt: Fix missing short_name in read_info
author
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 22 Feb 2012 19:46:22 +0000
(21:46 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000
(13:07 +0200)
The short name is part of the Read Controller Info response and should
be appropriately filled in based on the value of hdev->short_name.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index ee57edbb13ec9e932f58ab3dbca6d94cd3c1ea37..6850a8b46c62d99883eb34b7b1f619d1342318b6 100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-648,6
+648,7
@@
static int read_controller_info(struct sock *sk, u16 index)
memcpy(rp.dev_class, hdev->dev_class, 3);
memcpy(rp.name, hdev->dev_name, sizeof(hdev->dev_name));
+ memcpy(rp.short_name, hdev->short_name, sizeof(hdev->short_name));
hci_dev_unlock(hdev);
hci_dev_put(hdev);