Remove bt_packet_logger advisory check

This commit is contained in:
Jackson Coxson
2025-10-14 10:50:32 -06:00
parent 4710ffce34
commit 7507b9609c
2 changed files with 1 additions and 11 deletions

2
Cargo.lock generated
View File

@@ -1164,7 +1164,7 @@ dependencies = [
[[package]] [[package]]
name = "idevice" name = "idevice"
version = "0.1.42" version = "0.1.43"
dependencies = [ dependencies = [
"async-stream", "async-stream",
"async_zip", "async_zip",

View File

@@ -110,16 +110,6 @@ impl BtPacketLoggerClient {
let kind = BtPacketKind::from_byte(frame[off]); let kind = BtPacketKind::from_byte(frame[off]);
let payload = &frame[off + 1..]; // whatever remains let payload = &frame[off + 1..]; // whatever remains
// Optional soft check of advisory header.length
let advisory = hdr.length as usize;
let actual = 1 + payload.len(); // kind + payload
if advisory != actual {
debug!(
"BTPacketLogger advisory length {} != actual {}, proceeding",
advisory, actual
);
}
// Build H4 buffer (prepend type byte) // Build H4 buffer (prepend type byte)
let mut h4 = Vec::with_capacity(1 + payload.len()); let mut h4 = Vec::with_capacity(1 + payload.len());
if let Some(t) = kind.h4_type() { if let Some(t) = kind.h4_type() {