Skip to content

Commit

Permalink
Bluetooth: HCI: Use skb_pull_data to parse BR/EDR events
Browse files Browse the repository at this point in the history
This uses skb_pull_data to check the BR/EDR events received have the
minimum required length.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Luiz Augusto von Dentz authored and Marcel Holtmann committed Dec 7, 2021
1 parent 13244cc commit ae61a10
Show file tree
Hide file tree
Showing 2 changed files with 217 additions and 47 deletions.
4 changes: 4 additions & 0 deletions include/net/bluetooth/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,10 @@ struct hci_cp_le_reject_cis {
} __packed;

/* ---- HCI Events ---- */
struct hci_ev_status {
__u8 status;
} __packed;

#define HCI_EV_INQUIRY_COMPLETE 0x01

#define HCI_EV_INQUIRY_RESULT 0x02
Expand Down
Loading

0 comments on commit ae61a10

Please sign in to comment.