mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
Bluetooth: Add mgmt_remote_name event
This patch adds a new remote_name event to the Management interface which is sent every time the name of a remote device is resolved (over BR/EDR). Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
e17acd40f6
commit
a88a9652d2
4 changed files with 22 additions and 0 deletions
|
@ -2063,3 +2063,15 @@ int mgmt_device_found(u16 index, bdaddr_t *bdaddr, u8 *dev_class, s8 rssi,
|
|||
|
||||
return mgmt_event(MGMT_EV_DEVICE_FOUND, index, &ev, sizeof(ev), NULL);
|
||||
}
|
||||
|
||||
int mgmt_remote_name(u16 index, bdaddr_t *bdaddr, u8 *name)
|
||||
{
|
||||
struct mgmt_ev_remote_name ev;
|
||||
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
|
||||
bacpy(&ev.bdaddr, bdaddr);
|
||||
memcpy(ev.name, name, HCI_MAX_NAME_LENGTH);
|
||||
|
||||
return mgmt_event(MGMT_EV_REMOTE_NAME, index, &ev, sizeof(ev), NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue