diff options
Diffstat (limited to 'embassy-stm32-wpan/src/mac/driver.rs')
| -rw-r--r-- | embassy-stm32-wpan/src/mac/driver.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32-wpan/src/mac/driver.rs b/embassy-stm32-wpan/src/mac/driver.rs index c71fabe09..c43d595b7 100644 --- a/embassy-stm32-wpan/src/mac/driver.rs +++ b/embassy-stm32-wpan/src/mac/driver.rs | |||
| @@ -11,7 +11,7 @@ use embassy_sync::mutex::Mutex; | |||
| 11 | use embassy_sync::waitqueue::AtomicWaker; | 11 | use embassy_sync::waitqueue::AtomicWaker; |
| 12 | 12 | ||
| 13 | use crate::mac::event::MacEvent; | 13 | use crate::mac::event::MacEvent; |
| 14 | use crate::mac::indications::write_frame_from_data_indication; | 14 | use crate::mac::indications::{write_frame_from_beacon_indication, write_frame_from_data_indication}; |
| 15 | use crate::mac::runner::{BUF_SIZE, ZeroCopyPubSub}; | 15 | use crate::mac::runner::{BUF_SIZE, ZeroCopyPubSub}; |
| 16 | use crate::mac::{Control, MTU, Runner}; | 16 | use crate::mac::{Control, MTU, Runner}; |
| 17 | use crate::sub::mac::{Mac, MacRx, MacTx}; | 17 | use crate::sub::mac::{Mac, MacRx, MacTx}; |
| @@ -183,6 +183,7 @@ impl<'d> embassy_net_driver::RxToken for RxToken<'d> { | |||
| 183 | let mut buffer = [0u8; MTU]; | 183 | let mut buffer = [0u8; MTU]; |
| 184 | match self.rx.try_receive().unwrap() { | 184 | match self.rx.try_receive().unwrap() { |
| 185 | MacEvent::McpsDataInd(data_event) => write_frame_from_data_indication(data_event, &mut buffer), | 185 | MacEvent::McpsDataInd(data_event) => write_frame_from_data_indication(data_event, &mut buffer), |
| 186 | MacEvent::MlmeBeaconNotifyInd(data_event) => write_frame_from_beacon_indication(data_event, &mut buffer), | ||
| 186 | _ => {} | 187 | _ => {} |
| 187 | }; | 188 | }; |
| 188 | 189 | ||
