Skip to content

Commit 1c28bc6

Browse files
committed
Report USB 2.0 Extension capability
1 parent 5951115 commit 1c28bc6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/descriptor.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ impl<'w, 'a: 'w> BosWriter<'w, 'a> {
235235
&[
236236
0x00, 0x00, // wTotalLength
237237
0x00, // bNumDeviceCaps
238-
])
238+
])?;
239+
240+
self.capability(capability_type::USB_2_0_EXTENSION, &[0; 4])?;
241+
242+
Ok(())
239243
}
240244

241245
/// Writes capability descriptor to a BOS

0 commit comments

Comments
 (0)