Bluetooth: Add hdev->short_name for EIR generation
It's possible to provide a short name through the mgmt interface and this name can be used for EIR generation when the full name doesn't fit there. This patch adds the preliminary tracking of the provided short name. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
@@ -2273,6 +2273,9 @@ static int set_local_name(struct sock *sk, u16 index, void *data,
|
||||
goto failed;
|
||||
}
|
||||
|
||||
memcpy(hdev->short_name, mgmt_cp->short_name,
|
||||
sizeof(hdev->short_name));
|
||||
|
||||
memcpy(hci_cp.name, mgmt_cp->name, sizeof(hci_cp.name));
|
||||
err = hci_send_cmd(hdev, HCI_OP_WRITE_LOCAL_NAME, sizeof(hci_cp),
|
||||
&hci_cp);
|
||||
|
Reference in New Issue
Block a user