populate medium in DriverAdapter struct in IGMP code

This commit is contained in:
Stephan Wolski 2023-11-19 17:08:46 -05:00
parent e3be0b957a
commit be17e1b363
No known key found for this signature in database
GPG Key ID: FD42CDE01CBEA1D7

View File

@ -616,9 +616,11 @@ impl<D: Driver> Stack<D> {
let addr = addr.into(); let addr = addr.into();
self.with_mut(|s, i| { self.with_mut(|s, i| {
let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address());
let mut smoldev = DriverAdapter { let mut smoldev = DriverAdapter {
cx: Some(cx), cx: Some(cx),
inner: &mut i.device, inner: &mut i.device,
medium,
}; };
match s match s
@ -653,9 +655,11 @@ impl<D: Driver> Stack<D> {
let addr = addr.into(); let addr = addr.into();
self.with_mut(|s, i| { self.with_mut(|s, i| {
let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address());
let mut smoldev = DriverAdapter { let mut smoldev = DriverAdapter {
cx: Some(cx), cx: Some(cx),
inner: &mut i.device, inner: &mut i.device,
medium,
}; };
match s match s