diff options
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r-- | net/bluetooth/hci_request.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index fd6406df8a07..3c44c54a056f 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c | |||
@@ -1022,7 +1022,16 @@ static u8 append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len) | |||
1022 | 1022 | ||
1023 | static u8 create_default_scan_rsp_data(struct hci_dev *hdev, u8 *ptr) | 1023 | static u8 create_default_scan_rsp_data(struct hci_dev *hdev, u8 *ptr) |
1024 | { | 1024 | { |
1025 | return append_local_name(hdev, ptr, 0); | 1025 | u8 scan_rsp_len = 0; |
1026 | |||
1027 | if (hdev->appearance) { | ||
1028 | ptr[0] = 3; | ||
1029 | ptr[1] = EIR_APPEARANCE; | ||
1030 | put_unaligned_le16(hdev->appearance, ptr + 2); | ||
1031 | scan_rsp_len += 4; | ||
1032 | } | ||
1033 | |||
1034 | return append_local_name(hdev, ptr + scan_rsp_len, scan_rsp_len); | ||
1026 | } | 1035 | } |
1027 | 1036 | ||
1028 | static u8 create_instance_scan_rsp_data(struct hci_dev *hdev, u8 instance, | 1037 | static u8 create_instance_scan_rsp_data(struct hci_dev *hdev, u8 instance, |