ieee802154: Fixes issue with association on beacon-enabled networking

This commit is contained in:
Anthony Merlino 2017-07-13 17:56:31 -04:00
parent 2f01b92fe2
commit 86b690a285

View File

@ -1850,6 +1850,10 @@ static void mac802154_rxbeaconframe(FAR struct ieee802154_privmac_s *priv,
{
priv->curr_cmd = IEEE802154_CMD_DATA_REQ;
}
else if (priv->curr_op == MAC802154_OP_ASSOC)
{
priv->curr_cmd = IEEE802154_CMD_DATA_REQ;
}
else if (priv->curr_op == MAC802154_OP_NONE)
{
DEBUGASSERT(priv->opsem.semcount == 1);