mka: Fix RECEIVING to TRANSMIT logic in CP state machine

Per IEEE Std 802.1X-2010, Figure 12-2 (CP state machine), RECEIVING to
TRANSMIT transition includes !controlledPortEnabled condition.

Signed-off-by: Michael Siedzik <msiedzik@extremenetworks.com>
This commit is contained in:
Mike Siedzik 2018-02-20 14:28:41 -05:00 committed by Jouni Malinen
parent 06e06a8df7
commit 3dce43ba5f

View file

@ -386,7 +386,8 @@ SM_STEP(CP)
if (!sm->elected_self) if (!sm->elected_self)
SM_ENTER(CP, READY); SM_ENTER(CP, READY);
if (sm->elected_self && if (sm->elected_self &&
(sm->all_receiving || !sm->transmit_when)) (sm->all_receiving || !sm->controlled_port_enabled ||
!sm->transmit_when))
SM_ENTER(CP, TRANSMIT); SM_ENTER(CP, TRANSMIT);
break; break;