mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 14:22:33 +00:00
wpan/mac: incr. runner msdu handle
This commit is contained in:
parent
809d3476aa
commit
83ff626c47
@ -46,6 +46,8 @@ impl<'a> Runner<'a> {
|
||||
}
|
||||
},
|
||||
async {
|
||||
let mut msdu_handle = 0x02;
|
||||
|
||||
loop {
|
||||
let (buf, len) = self.tx_channel.recv().await;
|
||||
|
||||
@ -56,7 +58,7 @@ impl<'a> Runner<'a> {
|
||||
dst_addr_mode: AddressMode::Short,
|
||||
dst_pan_id: PanId([0x1A, 0xAA]),
|
||||
dst_address: MacAddress::BROADCAST,
|
||||
msdu_handle: 0x02,
|
||||
msdu_handle: msdu_handle,
|
||||
ack_tx: 0x00,
|
||||
gts_tx: false,
|
||||
security_level: SecurityLevel::Unsecure,
|
||||
@ -67,6 +69,8 @@ impl<'a> Runner<'a> {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
msdu_handle += 1;
|
||||
|
||||
// The tx channel should always be of equal capacity to the tx_buf channel
|
||||
self.tx_buf_channel.try_send(buf).unwrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user