Thibaut Vandervelden 3 лет назад
Родитель
Сommit
4fb1ceb791
1 измененных файлов с 2 добавлено и 2 удалено
  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);