]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mka: Fix RECEIVING to TRANSMIT logic in CP state machine
authorMike Siedzik <msiedzik@extremenetworks.com>
Tue, 20 Feb 2018 19:28:41 +0000 (14:28 -0500)
committerJouni Malinen <j@w1.fi>
Wed, 26 Dec 2018 14:42:25 +0000 (16:42 +0200)
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>
src/pae/ieee802_1x_cp.c

index 41ca3f0f5f8160c4ff5ca57cb4243fe4c4ee7ab8..59be69616a5535334fb73beab3d1a739eaf63b7b 100644 (file)
@@ -386,7 +386,8 @@ SM_STEP(CP)
                if (!sm->elected_self)
                        SM_ENTER(CP, READY);
                if (sm->elected_self &&
-                   (sm->all_receiving || !sm->transmit_when))
+                   (sm->all_receiving || !sm->controlled_port_enabled ||
+                    !sm->transmit_when))
                        SM_ENTER(CP, TRANSMIT);
                break;