From b43a4610f7b621c53fbec45fc701ed7f49bc12b2 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 24 Feb 2015 22:15:30 -0600 Subject: [PATCH] unit: Add setting of AP RSNE --- unit/test-eapol.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unit/test-eapol.c b/unit/test-eapol.c index 45e8c8c3..e6fff164 100644 --- a/unit/test-eapol.c +++ b/unit/test-eapol.c @@ -613,6 +613,11 @@ static void eapol_sm_test(const void *data) 0x7a, 0x5e, 0xbb, 0x2a, 0x54, 0x9f, 0x8c, 0xd4, 0xed, 0xab, 0x8e, 0xe1, 0x2e, 0x94, 0xbf, 0xc2, 0x4b, 0x33, 0x57, 0xad, 0x04, 0x96, 0x65, 0xd9 }; + const unsigned char ap_rsne[] = { + 0x30, 0x14, 0x01, 0x00, 0x00, 0x0f, 0xac, 0x04, + 0x01, 0x00, 0x00, 0x0f, 0xac, 0x04, 0x01, 0x00, + 0x00, 0x0f, 0xac, 0x02, 0x00, 0x00 }; + struct eapol_sm *sm; eapol_init(); @@ -626,6 +631,7 @@ static void eapol_sm_test(const void *data) eapol_sm_set_sta_address(sm, spa); eapol_sm_set_own_rsn(sm, eapol_key_data_4 + sizeof(struct eapol_key), eapol_key_test_4.key_data_len); + eapol_sm_set_ap_rsn(sm, ap_rsne, sizeof(ap_rsne)); eapol_start(1, sm); __eapol_set_tx_packet_func(verify_step2);