Skip to contentSkip to conversation

Bluetooth: Add support for Not Connectable flag for Device Found events

PATCH New Marcel Holtmann 1 participant 1 message Jul 1, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: Add support for Not Connectable flag for Device Found events

The Device Found events of the management interface should indicate if it is possible to connect to a remote device or if it is broadcaster only advertising. To allow this differentation the Not Connectable flag is introduced that will be set when it is known that a device can not be connected.

---
 include/net/bluetooth/hci_core.h |  1 +
 net/bluetooth/hci_event.c        | 42 +++++++++++++++++++++++++++++++---------
 2 files changed, 34 insertions(+), 9 deletions(-)
include/net/bluetooth/hci_core.h +1 -0
index ab3d4dda071c..eb0add396595 100644
@@ -71,6 +71,7 @@ struct discovery_state {
 	bdaddr_t		last_adv_addr;
 	u8			last_adv_addr_type;
 	s8			last_adv_rssi;
+	u32			last_adv_flags;
 	u8			last_adv_data[HCI_MAX_AD_LENGTH];
 	u8			last_adv_data_len;
 };
net/bluetooth/hci_event.c +33 -9

106 lines not on this page · raw message

Signature · 1 line
1.9.3