From be17e1b363338c1f5bc445ee45067506e2571954 Mon Sep 17 00:00:00 2001 From: Stephan Wolski Date: Sun, 19 Nov 2023 17:08:46 -0500 Subject: [PATCH] populate `medium` in DriverAdapter struct in IGMP code --- embassy-net/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 6aa476aa..58310b20 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