summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-04 13:19:31 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-04 13:19:31 +0000
commita4e5fd3235a6dbbda20b0115c4492377cbaf1b2b (patch)
treebdc499bfed13a12360fd8546760f6f6c948bdb32
parent35eb3c8576d1e16f36e7088a4c0854bd65e21b9c (diff)
parent4c4c22ddc3f874c192647690863a01e4f2dc5f1b (diff)
downloaduwb-android13-mainline-media-release.tar.gz
Snap for 9689921 from 4c4c22ddc3f874c192647690863a01e4f2dc5f1b to mainline-media-releaseaml_med_331712010android13-mainline-media-release
Change-Id: Iac8211245cb10edbbac5d8db1dd92e1337e2c03f
-rw-r--r--src/rust/uwb_core/src/uci/pcapng_block.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rust/uwb_core/src/uci/pcapng_block.rs b/src/rust/uwb_core/src/uci/pcapng_block.rs
index c94ddac..6fcc670 100644
--- a/src/rust/uwb_core/src/uci/pcapng_block.rs
+++ b/src/rust/uwb_core/src/uci/pcapng_block.rs
@@ -143,7 +143,7 @@ pub struct InterfaceDescriptionBlockBuilder {
impl Default for InterfaceDescriptionBlockBuilder {
fn default() -> Self {
Self {
- link_type: 293, // USB 2.0 Low Speed
+ link_type: 299, // FiRa UCI
snap_len: 0, // unlimited
block_options: vec![],
}
@@ -422,7 +422,7 @@ mod tests {
#[test]
fn test_interface_description_block_with_options_build() {
let comment_opt = BlockOption::new(0x1, "ABCDEF".to_owned().into_bytes());
- let link_type: u16 = 293; // 0x125
+ let link_type: u16 = 299; // 0x12b
let snap_len: u32 = 0;
let interface_description_block = InterfaceDescriptionBlockBuilder::new()
.link_type(link_type)
@@ -433,7 +433,7 @@ mod tests {
let expected_block: Vec<u8> = vec![
0x01, 0x00, 0x00, 0x00, // block type
0x24, 0x00, 0x00, 0x00, // block length
- 0x25, 0x01, 0x00, 0x00, // link type, reserved
+ 0x2b, 0x01, 0x00, 0x00, // link type, reserved
0x00, 0x00, 0x00, 0x00, // SnapLen
0x01, 0x00, 0x06, 0x00, // option code, padded length
0x41, 0x42, 0x43, 0x44, // option (ABCD)