diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-23 15:31:51 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-23 15:39:17 -0500 |
commit | 08c79b6133b70a6e3d462d11a89c80259ac66ec7 (patch) | |
tree | b4ef15186aa7ed85f44d79310fa1d97d0e238cd3 /net/bluetooth/mgmt.c | |
parent | 9246a8693e74b3480913cf6e0c2d472267169990 (diff) |
Bluetooth: mgmt: Add flags parameter to device_connected
This patch updates the Device Connected events to match the latest API
by adding a flags parameter to them.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 93f2c1348add..79fe57573463 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -3249,8 +3249,8 @@ int mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, u8 persistent) | |||
3249 | } | 3249 | } |
3250 | 3250 | ||
3251 | int mgmt_device_connected(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, | 3251 | int mgmt_device_connected(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, |
3252 | u8 addr_type, u8 *name, u8 name_len, | 3252 | u8 addr_type, u32 flags, u8 *name, |
3253 | u8 *dev_class) | 3253 | u8 name_len, u8 *dev_class) |
3254 | { | 3254 | { |
3255 | char buf[512]; | 3255 | char buf[512]; |
3256 | struct mgmt_ev_device_connected *ev = (void *) buf; | 3256 | struct mgmt_ev_device_connected *ev = (void *) buf; |
@@ -3259,6 +3259,8 @@ int mgmt_device_connected(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, | |||
3259 | bacpy(&ev->addr.bdaddr, bdaddr); | 3259 | bacpy(&ev->addr.bdaddr, bdaddr); |
3260 | ev->addr.type = link_to_mgmt(link_type, addr_type); | 3260 | ev->addr.type = link_to_mgmt(link_type, addr_type); |
3261 | 3261 | ||
3262 | put_unaligned_le32(flags, &ev->flags); | ||
3263 | |||
3262 | if (name_len > 0) | 3264 | if (name_len > 0) |
3263 | eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, | 3265 | eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, |
3264 | name, name_len); | 3266 | name, name_len); |