diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-15 13:31:12 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-15 14:28:38 -0400 |
commit | efdcf8e3d716730d2212dfd973571a0ed00c9b10 (patch) | |
tree | 17b3ba516a150a5b35580d1138c4612d0d6e60ff /include/net/bluetooth | |
parent | 9493399108a186492bb828417a43ff37d9ae48fa (diff) |
Bluetooth: Move eir_get_length() function into hci_event.c
The eir_get_length() function is only used from hci_event.c and so
instead of having a public function move it to the location where
it is used.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 42591a41baf0..b076cd9f6683 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -1009,23 +1009,6 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type) | |||
1009 | return false; | 1009 | return false; |
1010 | } | 1010 | } |
1011 | 1011 | ||
1012 | static inline size_t eir_get_length(u8 *eir, size_t eir_len) | ||
1013 | { | ||
1014 | size_t parsed = 0; | ||
1015 | |||
1016 | while (parsed < eir_len) { | ||
1017 | u8 field_len = eir[0]; | ||
1018 | |||
1019 | if (field_len == 0) | ||
1020 | return parsed; | ||
1021 | |||
1022 | parsed += field_len + 1; | ||
1023 | eir += field_len + 1; | ||
1024 | } | ||
1025 | |||
1026 | return eir_len; | ||
1027 | } | ||
1028 | |||
1029 | int hci_register_cb(struct hci_cb *hcb); | 1012 | int hci_register_cb(struct hci_cb *hcb); |
1030 | int hci_unregister_cb(struct hci_cb *hcb); | 1013 | int hci_unregister_cb(struct hci_cb *hcb); |
1031 | 1014 | ||