3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

unit: fix test-sae to use new status codes

This commit is contained in:
James Prestwood 2019-02-27 13:30:42 -08:00 committed by Denis Kenzior
parent e5e2922eee
commit 8fbd0870fc

View File

@ -245,7 +245,7 @@ static void test_clogging(const void *arg)
struct sae_sm *sm = test_initialize(td); struct sae_sm *sm = test_initialize(td);
l_put_le16(1, frame); l_put_le16(1, frame);
l_put_le16(MMPDU_REASON_CODE_ANTI_CLOGGING_TOKEN_REQ, frame + 2); l_put_le16(MMPDU_STATUS_CODE_ANTI_CLOGGING_TOKEN_REQ, frame + 2);
l_put_le16(19, frame + 4); l_put_le16(19, frame + 4);
memcpy(frame + 6, td->test_clogging_token, 32); memcpy(frame + 6, td->test_clogging_token, 32);
@ -352,7 +352,7 @@ static void test_bad_group(const void *arg)
sae_rx_packet(sm, aa, aa_commit_bad_group, sizeof(aa_commit_bad_group)); sae_rx_packet(sm, aa, aa_commit_bad_group, sizeof(aa_commit_bad_group));
assert(td->tx_reject_occurred); assert(td->tx_reject_occurred);
assert(td->status == MMPDU_REASON_CODE_UNSUPP_FINITE_CYCLIC_GROUP); assert(td->status == MMPDU_STATUS_CODE_UNSUPP_FINITE_CYCLIC_GROUP);
test_destruct(td); test_destruct(td);
} }