]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Reflect status code in SAE reflection attack test
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 25 Aug 2020 15:48:06 +0000 (08:48 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 9 Oct 2020 13:50:36 +0000 (16:50 +0300)
commita28d127b1a994a8d25e51c69686d8db9e9fcdf62
tree75359383e334244e6c4f6433e867e29a563188fc
parente8b85c078e7339422c14ba09a64c01dc142f8516
AP: Reflect status code in SAE reflection attack test

When testing SAE reflection, the incoming commit may have the H2E status
code (126) or SAE-PK (127), but the test code in the AP was always
sending back status code 0. The STA would then reject the commit
response due to expecting H2E/SAE-PK status code.

Just reflect the incoming status code so the commit can be rejected
based on the SAE contents regardless of which variant of SAE was used.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
src/ap/ieee802_11.c