Merge pull request #23 from danbev/ioctl_set_u32-iface

Update ioctl_set_u32 to pass through iface param
This commit is contained in:
Dario Nieuwenhuis 2022-09-25 23:37:35 +02:00 committed by GitHub
commit 11387c3b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -483,7 +483,7 @@ impl<'a> Control<'a> {
async fn ioctl_set_u32(&mut self, cmd: u32, iface: u32, val: u32) {
let mut buf = val.to_le_bytes();
self.ioctl(IoctlType::Set, cmd, 0, &mut buf).await;
self.ioctl(IoctlType::Set, cmd, iface, &mut buf).await;
}
async fn ioctl(&mut self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize {