diff options
Diffstat (limited to 'include/net/bluetooth')
| -rw-r--r-- | include/net/bluetooth/hci_core.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index eac422337582..86ea4bab9e77 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
| @@ -1071,6 +1071,17 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type) | |||
| 1071 | return false; | 1071 | return false; |
| 1072 | } | 1072 | } |
| 1073 | 1073 | ||
| 1074 | static inline bool hci_bdaddr_is_rpa(bdaddr_t *bdaddr, u8 addr_type) | ||
| 1075 | { | ||
| 1076 | if (addr_type != 0x01) | ||
| 1077 | return false; | ||
| 1078 | |||
| 1079 | if ((bdaddr->b[5] & 0xc0) == 0x40) | ||
| 1080 | return true; | ||
| 1081 | |||
| 1082 | return false; | ||
| 1083 | } | ||
| 1084 | |||
| 1074 | int hci_register_cb(struct hci_cb *hcb); | 1085 | int hci_register_cb(struct hci_cb *hcb); |
| 1075 | int hci_unregister_cb(struct hci_cb *hcb); | 1086 | int hci_unregister_cb(struct hci_cb *hcb); |
| 1076 | 1087 | ||
