From 86b690a285d6bf92460aa3cc7b1eb01a27e4e1a4 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Thu, 13 Jul 2017 17:56:31 -0400 Subject: [PATCH] ieee802154: Fixes issue with association on beacon-enabled networking --- wireless/ieee802154/mac802154.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 5c1e91b2e7..5753f167e3 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -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);