diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index c72f29ed5..7fd9200fe 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
| @@ -483,7 +483,7 @@ impl<'a> Control<'a> { | |||
| 483 | 483 | ||
| 484 | async fn ioctl_set_u32(&mut self, cmd: u32, iface: u32, val: u32) { | 484 | async fn ioctl_set_u32(&mut self, cmd: u32, iface: u32, val: u32) { |
| 485 | let mut buf = val.to_le_bytes(); | 485 | let mut buf = val.to_le_bytes(); |
| 486 | self.ioctl(IoctlType::Set, cmd, 0, &mut buf).await; | 486 | self.ioctl(IoctlType::Set, cmd, iface, &mut buf).await; |
| 487 | } | 487 | } |
| 488 | 488 | ||
| 489 | async fn ioctl(&mut self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize { | 489 | async fn ioctl(&mut self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize { |
