OSDN Git Service

Avoid more annoying crashing android-x86-9.0-r1 android-x86-9.0-r2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 14 Feb 2020 03:38:38 +0000 (11:38 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 14 Feb 2020 03:38:38 +0000 (11:38 +0800)
device/src/controller.cc
hci/src/packet_fragmenter.cc

index a7a807b..6ce35be 100644 (file)
@@ -265,7 +265,7 @@ static future_t* start_up(void) {
   }
 
   if (!HCI_READ_ENCR_KEY_SIZE_SUPPORTED(supported_commands)) {
-    LOG(FATAL) << " Controller must support Read Encryption Key Size command";
+    LOG(WARNING) << " Controller must support Read Encryption Key Size command";
   }
 
   readable = true;
index 217b4fd..82e48de 100644 (file)
@@ -130,8 +130,6 @@ static void reassemble_and_dispatch(UNUSED_ATTR BT_HDR* packet) {
     STREAM_TO_UINT16(acl_length, stream);
     STREAM_TO_UINT16(l2cap_length, stream);
 
-    CHECK(acl_length == packet->len - HCI_ACL_PREAMBLE_SIZE);
-
     uint8_t boundary_flag = GET_BOUNDARY_FLAG(handle);
     handle = handle & HANDLE_MASK;