Skip to content

Commit

Permalink
fixup! tests/drivers/nrf802154: test if Beacons can be received
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas-Luger committed Nov 18, 2024
1 parent 71d062b commit 2db3125
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cpu/nrf52/radio/nrf802154/nrf802154_radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ static bool _l2filter(uint8_t *mhr)
int src_addr_len = ieee802154_get_src(mhr, src_addr, &src_pan);

if ((mhr[0] & IEEE802154_FCF_TYPE_MASK) == IEEE802154_FCF_TYPE_BEACON) {
if(src_addr_len == IEEE802154_SHORT_ADDRESS_LEN ||
if(src_addr_len == IEEE802154_SHORT_ADDRESS_LEN ||
src_addr_len == IEEE802154_LONG_ADDRESS_LEN){
if ((memcmp(&nrf802154_pan_id, src_pan.u8, 2) == 0) ||
(memcmp(&nrf802154_pan_id, pan_bcast, 2) == 0)) {
if ((memcmp(&nrf802154_pan_id, src_pan.u8, 2) == 0) ||
(memcmp(&nrf802154_pan_id, pan_bcast, 2) == 0)) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/drivers/nrf802154/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ int main(void)
puts("Error initializing devices");
return 1;
}

/* start the shell */
puts("Initialization successful - starting the shell now");

char line_buf[SHELL_DEFAULT_BUFSIZE];
shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);

Expand Down

0 comments on commit 2db3125

Please sign in to comment.