Thibaut Vandervelden %!s(int64=3) %!d(string=hai) anos
pai
achega
4fb1ceb791
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/iface/interface.rs

+ 2 - 2
src/iface/interface.rs

@@ -549,7 +549,7 @@ where
         #[cfg(all(feature = "medium-ieee802154", feature = "medium-ethernet"))]
         assert!(
             self.device().capabilities().medium == Medium::Ethernet
-                || self.device().capabilities().medium == Medium::Ethernet
+                || self.device().capabilities().medium == Medium::Ieee802154
         );
 
         self.inner.hardware_addr.unwrap()
@@ -570,7 +570,7 @@ where
         #[cfg(all(feature = "medium-ieee802154", feature = "medium-ethernet"))]
         assert!(
             self.device().capabilities().medium == Medium::Ethernet
-                || self.device().capabilities().medium == Medium::Ethernet
+                || self.device().capabilities().medium == Medium::Ieee802154
         );
 
         InterfaceInner::check_hardware_addr(&addr);