diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 6aa476aa0..58310b203 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs @@ -616,9 +616,11 @@ impl Stack { let addr = addr.into(); self.with_mut(|s, i| { + let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address()); let mut smoldev = DriverAdapter { cx: Some(cx), inner: &mut i.device, + medium, }; match s @@ -653,9 +655,11 @@ impl Stack { let addr = addr.into(); self.with_mut(|s, i| { + let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address()); let mut smoldev = DriverAdapter { cx: Some(cx), inner: &mut i.device, + medium, }; match s