aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index c162af5d16bf..d4b3dd5413be 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -4727,6 +4727,19 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr,
4727 u32 flags; 4727 u32 flags;
4728 u8 *ptr, real_len; 4728 u8 *ptr, real_len;
4729 4729
4730 switch (type) {
4731 case LE_ADV_IND:
4732 case LE_ADV_DIRECT_IND:
4733 case LE_ADV_SCAN_IND:
4734 case LE_ADV_NONCONN_IND:
4735 case LE_ADV_SCAN_RSP:
4736 break;
4737 default:
4738 BT_ERR_RATELIMITED("Unknown advetising packet type: 0x%02x",
4739 type);
4740 return;
4741 }
4742
4730 /* Find the end of the data in case the report contains padded zero 4743 /* Find the end of the data in case the report contains padded zero
4731 * bytes at the end causing an invalid length value. 4744 * bytes at the end causing an invalid length value.
4732 * 4745 *