From 281cbcb1e8f2df2af6584c8dcef2d45b1ef73f4b Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 23 Sep 2022 09:39:29 +0200 Subject: [PATCH] Update ioctl_set_u32 to pass through iface param This commit updates ioctl_set_u32 to pass through the `iface` parameter to self.iotcl. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> { 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 {