system/bt
Revision | f27b26cab27f33c05e5f02335bf210cd300a5fc1 (tree) |
---|---|
Zeit | 2020-02-14 12:38:38 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Avoid more annoying crashing
@@ -265,7 +265,7 @@ static future_t* start_up(void) { | ||
265 | 265 | } |
266 | 266 | |
267 | 267 | if (!HCI_READ_ENCR_KEY_SIZE_SUPPORTED(supported_commands)) { |
268 | - LOG(FATAL) << " Controller must support Read Encryption Key Size command"; | |
268 | + LOG(WARNING) << " Controller must support Read Encryption Key Size command"; | |
269 | 269 | } |
270 | 270 | |
271 | 271 | readable = true; |
@@ -130,8 +130,6 @@ static void reassemble_and_dispatch(UNUSED_ATTR BT_HDR* packet) { | ||
130 | 130 | STREAM_TO_UINT16(acl_length, stream); |
131 | 131 | STREAM_TO_UINT16(l2cap_length, stream); |
132 | 132 | |
133 | - CHECK(acl_length == packet->len - HCI_ACL_PREAMBLE_SIZE); | |
134 | - | |
135 | 133 | uint8_t boundary_flag = GET_BOUNDARY_FLAG(handle); |
136 | 134 | handle = handle & HANDLE_MASK; |
137 | 135 |