From bb9157d5e3571b2b418cf2e670f55d8689eff8df Mon Sep 17 00:00:00 2001 From: Takanori Watanabe Date: Sun, 12 Apr 2015 15:08:41 +0000 Subject: [PATCH] Accept LE event on hccontrol socket. --- usr.sbin/bluetooth/hccontrol/hccontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/bluetooth/hccontrol/hccontrol.c b/usr.sbin/bluetooth/hccontrol/hccontrol.c index 9c60ae8b3149..a9217737b593 100644 --- a/usr.sbin/bluetooth/hccontrol/hccontrol.c +++ b/usr.sbin/bluetooth/hccontrol/hccontrol.c @@ -144,6 +144,7 @@ socket_open(char const *node) bit_set(filter.event_mask, NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL - 1); bit_set(filter.event_mask, NG_HCI_EVENT_CON_PKT_TYPE_CHANGED - 1); bit_set(filter.event_mask, NG_HCI_EVENT_ROLE_CHANGE - 1); + bit_set(filter.event_mask, NG_HCI_EVENT_LE -1); if (setsockopt(s, SOL_HCI_RAW, SO_HCI_RAW_FILTER, (void * const) &filter, sizeof(filter)) < 0)