ieee802154: Adds some wlinfo logs for debugging
This commit is contained in:
parent
acc1ecd9a9
commit
8610723ee6
@ -388,6 +388,7 @@ void mrf24j40_irqworker(FAR void *arg)
|
||||
|
||||
mrf24j40_setreg(dev->spi, MRF24J40_BEACON_FIFO + 4, dev->bsn++);
|
||||
mrf24j40_beacon_trigger(dev);
|
||||
wlinfo("Beacon triggered. BSN: 0x%02X\n", dev->bsn-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,11 +141,13 @@ static void mrf24j40_setorder(FAR struct mrf24j40_radio_s *dev, uint8_t bo,
|
||||
{
|
||||
if (dev->devmode == IEEE802154_DEVMODE_ENDPOINT)
|
||||
{
|
||||
wlinfo("Configuring sleep for inactive period\n");
|
||||
maincnt = (bi - sfduration) / dev->slpclkper;
|
||||
remcnt = ((bi - sfduration) - (maincnt * dev->slpclkper)) / 50;
|
||||
}
|
||||
else
|
||||
{
|
||||
wlinfo("Configuring sleep for beacon interval\n");
|
||||
maincnt = bi / dev->slpclkper;
|
||||
remcnt = (bi - (maincnt * dev->slpclkper)) / 50;
|
||||
}
|
||||
|
@ -1110,7 +1110,7 @@ static void mac802154_rxframe_worker(FAR void *arg)
|
||||
|
||||
case IEEE802154_FRAME_BEACON:
|
||||
{
|
||||
wlinfo("Beacon frame received\n");
|
||||
wlinfo("Beacon frame received. BSN: 0x%02X\n", ind->dsn);
|
||||
mac802154_rxbeaconframe(priv, ind);
|
||||
ieee802154_ind_free(ind);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user