aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a6b26188d..80e076629 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -476,7 +476,7 @@ impl<'a> Control<'a> {
476 476
477 async fn ioctl_set_u32(&mut self, cmd: u32, iface: u32, val: u32) { 477 async fn ioctl_set_u32(&mut self, cmd: u32, iface: u32, val: u32) {
478 let mut buf = val.to_le_bytes(); 478 let mut buf = val.to_le_bytes();
479 self.ioctl(IoctlType::Set, cmd, 0, &mut buf).await; 479 self.ioctl(IoctlType::Set, cmd, iface, &mut buf).await;
480 } 480 }
481 481
482 async fn ioctl(&mut self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize { 482 async fn ioctl(&mut self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize {