ieee802154: Supports multiple incoming superframe events
This commit is contained in:
parent
06b99588c0
commit
032deb5f49
|
@ -1515,6 +1515,12 @@ static void mac802154_sfevent(FAR const struct ieee802154_radiocb_s *radiocb,
|
||||||
|
|
||||||
mac802154_takesem(&priv->exclsem, false);
|
mac802154_takesem(&priv->exclsem, false);
|
||||||
|
|
||||||
|
switch (sfevent)
|
||||||
|
{
|
||||||
|
case IEEE802154_SFEVENT_ENDOFACTIVE:
|
||||||
|
{
|
||||||
|
wlinfo("End of superframe\n");
|
||||||
|
|
||||||
/* Check if there is any reason to update the beacon */
|
/* Check if there is any reason to update the beacon */
|
||||||
|
|
||||||
if (priv->beaconupdate)
|
if (priv->beaconupdate)
|
||||||
|
@ -1523,6 +1529,12 @@ static void mac802154_sfevent(FAR const struct ieee802154_radiocb_s *radiocb,
|
||||||
|
|
||||||
priv->radio->beaconupdate(priv->radio, &priv->beaconframe[priv->bf_ind]);
|
priv->radio->beaconupdate(priv->radio, &priv->beaconframe[priv->bf_ind]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
mac802154_givesem(&priv->exclsem);
|
mac802154_givesem(&priv->exclsem);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue