diff options
| author | Daniel Bevenius <[email protected]> | 2022-09-23 09:39:29 +0200 |
|---|---|---|
| committer | Daniel Bevenius <[email protected]> | 2022-09-23 09:39:29 +0200 |
| commit | 281cbcb1e8f2df2af6584c8dcef2d45b1ef73f4b (patch) | |
| tree | 5470a5339624476afe7b5fa2aa99d648773ed3c5 /src/lib.rs | |
| parent | 9db9333d0569ca8e86301f643e42abd37f3b7118 (diff) | |
Update ioctl_set_u32 to pass through iface param
This commit updates ioctl_set_u32 to pass through the `iface` parameter
to self.iotcl.
Diffstat (limited to 'src/lib.rs')
| -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 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 { |
