aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-01-18 01:27:20 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-01-18 01:27:20 +0200
commit26a2456f1f3a075b1a4b94454dcc6f13274b7c03 (patch)
treefe5552d4dc0e2c6465d1722817232dc10bc3a84e /src/event.c
parentcacfa7e3a408583614d029a532858367fff1ddac (diff)
downloadbluez-26a2456f1f3a075b1a4b94454dcc6f13274b7c03.tar.gz
bluez-26a2456f1f3a075b1a4b94454dcc6f13274b7c03.tar.xz
bluez-26a2456f1f3a075b1a4b94454dcc6f13274b7c03.zip
hciops: Encode class of device data into EIR
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/event.c b/src/event.c
index d0e192ba..30666354 100644
--- a/src/event.c
+++ b/src/event.c
@@ -247,9 +247,8 @@ static void update_lastused(bdaddr_t *sba, bdaddr_t *dba)
}
void btd_event_device_found(bdaddr_t *local, bdaddr_t *peer, addr_type_t type,
- uint32_t class, int8_t rssi,
- uint8_t confirm_name, uint8_t *data,
- uint8_t data_len)
+ int8_t rssi, uint8_t confirm_name,
+ uint8_t *data, uint8_t data_len)
{
struct btd_adapter *adapter;
@@ -260,12 +259,11 @@ void btd_event_device_found(bdaddr_t *local, bdaddr_t *peer, addr_type_t type,
}
update_lastseen(local, peer);
- write_remote_class(local, peer, class);
if (data)
write_remote_eir(local, peer, data);
- adapter_update_found_devices(adapter, peer, type, class, rssi,
+ adapter_update_found_devices(adapter, peer, type, rssi,
confirm_name, data, data_len);
}