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
1 changed files with 4 additions and 0 deletions

View File

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