Thibaut Vandervelden 3 years ago
parent
commit
4fb1ceb791
1 changed files with 2 additions and 2 deletions
  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);