|
@@ -1009,23 +1009,6 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type)
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline size_t eir_get_length(u8 *eir, size_t eir_len)
|
|
|
|
-{
|
|
|
|
- size_t parsed = 0;
|
|
|
|
-
|
|
|
|
- while (parsed < eir_len) {
|
|
|
|
- u8 field_len = eir[0];
|
|
|
|
-
|
|
|
|
- if (field_len == 0)
|
|
|
|
- return parsed;
|
|
|
|
-
|
|
|
|
- parsed += field_len + 1;
|
|
|
|
- eir += field_len + 1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return eir_len;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
int hci_register_cb(struct hci_cb *hcb);
|
|
int hci_register_cb(struct hci_cb *hcb);
|
|
int hci_unregister_cb(struct hci_cb *hcb);
|
|
int hci_unregister_cb(struct hci_cb *hcb);
|
|
|
|
|