MACsec: Fix policy configuration
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 30 Oct 2014 09:43:47 +0000 (11:43 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 30 Oct 2014 09:43:47 +0000 (11:43 +0200)
commit43d859271894f83c5de6294685b5919889541bab
tree9b67e87f63ecbf33369684110908b56a5df4729e
parent8c00fd00cd941a789d8b2a8ae5ce374831db63c3
MACsec: Fix policy configuration

macsec_validate variable was set incorrectly to FALSE(0) or TRUE(1)
instead of the enum validate_frames values (Disabled(0), Checked(1),
Strict(2). This ended up policy == SHOULD_SECURE to be mapped to
macsec_validate == Checked instead of Strict. This could have resulted
in unintended SecY forwarding of invalid packets rather than dropping
them.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/pae/ieee802_1x_kay.c