system/bt
Revisión | 218668ac743b39161bbff7912b6621db4a82fad5 (tree) |
---|---|
Tiempo | 2020-02-14 14:15:13 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Avoid more annoying crashing
@@ -254,7 +254,7 @@ static future_t* start_up(void) { | ||
254 | 254 | } |
255 | 255 | |
256 | 256 | if (!HCI_READ_ENCR_KEY_SIZE_SUPPORTED(supported_commands)) { |
257 | - LOG(FATAL) << " Controller must support Read Encryption Key Size command"; | |
257 | + LOG(WARNING) << " Controller must support Read Encryption Key Size command"; | |
258 | 258 | } |
259 | 259 | |
260 | 260 | readable = true; |
@@ -128,8 +128,6 @@ static void reassemble_and_dispatch(UNUSED_ATTR BT_HDR* packet) { | ||
128 | 128 | STREAM_TO_UINT16(acl_length, stream); |
129 | 129 | STREAM_TO_UINT16(l2cap_length, stream); |
130 | 130 | |
131 | - CHECK(acl_length == packet->len - HCI_ACL_PREAMBLE_SIZE); | |
132 | - | |
133 | 131 | uint8_t boundary_flag = GET_BOUNDARY_FLAG(handle); |
134 | 132 | handle = handle & HANDLE_MASK; |
135 | 133 |