diff options
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r-- | net/bluetooth/hci_request.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index fe14fd121d36..3150461c52a4 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c | |||
@@ -420,6 +420,16 @@ static void __hci_update_background_scan(struct hci_request *req) | |||
420 | } | 420 | } |
421 | } | 421 | } |
422 | 422 | ||
423 | void __hci_req_update_name(struct hci_request *req) | ||
424 | { | ||
425 | struct hci_dev *hdev = req->hdev; | ||
426 | struct hci_cp_write_local_name cp; | ||
427 | |||
428 | memcpy(cp.name, hdev->dev_name, sizeof(cp.name)); | ||
429 | |||
430 | hci_req_add(req, HCI_OP_WRITE_LOCAL_NAME, sizeof(cp), &cp); | ||
431 | } | ||
432 | |||
423 | void hci_req_add_le_scan_disable(struct hci_request *req) | 433 | void hci_req_add_le_scan_disable(struct hci_request *req) |
424 | { | 434 | { |
425 | struct hci_cp_le_set_scan_enable cp; | 435 | struct hci_cp_le_set_scan_enable cp; |