Skip to content

Commit

Permalink
fix filtering bug + contention issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SamClercky committed Mar 21, 2024
1 parent ae184aa commit b00848b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dot15d4/src/csma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ where

// Check if package is meant for us
if !Self::is_package_for_us(&self.hardware_address, &frame)
&& !self.config.ignore_not_for_us
&& self.config.ignore_not_for_us
{
// Package is not for us to handle, ignore
rx.dirty = false;
Expand Down
2 changes: 1 addition & 1 deletion dot15d4/src/csma/user_configurable_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub const MAC_MAX_BE: u16 = 8;
pub const MAC_MAX_CSMA_BACKOFFS: u16 = 16;
pub const MAC_UNIT_BACKOFF_DURATION: Duration =
Duration::from_us((UNIT_BACKOFF_PERIOD * SYMBOL_RATE_INV_US) as i64);
pub const MAC_MAX_FRAME_RETIES: u16 = 16; // TODO: XXX
pub const MAC_MAX_FRAME_RETIES: u16 = 3; // 0-7
pub const _MAC_INTER_FRAME_TIME: Duration = Duration::from_us(1000); // TODO: XXX
/// AIFS=1ms, for SUN PHY, LECIM PHY, TVWS PHY
pub const ACKNOWLEDGEMENT_INTERFRAME_SPACING: Duration = Duration::from_us(1000);
Expand Down

0 comments on commit b00848b

Please sign in to comment.