3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

unit: Fix eapol IP Allocation test failure

This test was failing due to a change introduced in commit
5c9de0cf23 which changed handshake state storage of IPs from host
order to network byte order.  Update the test to set IPs in network
byte-order.

Fixes: 5c9de0cf23 ("eapol: Store IP address in network byte order")
This commit is contained in:
Denis Kenzior 2021-08-23 08:51:35 -05:00
parent c96812a5f6
commit ed10b00afa

View File

@ -3802,9 +3802,9 @@ static void eapol_ap_sta_handshake_ip_alloc_ok_test(const void *data)
handshake_state_set_ssid(s.ap_hs, (void *) ssid, strlen(ssid));
handshake_state_set_pmk(s.ap_hs, psk, 32);
s.ap_hs->support_ip_allocation = true;
s.ap_hs->client_ip_addr = 0x01020304;
s.ap_hs->subnet_mask = 0xffff0000;
s.ap_hs->go_ip_addr = 0x01020305;
s.ap_hs->client_ip_addr = L_CPU_TO_BE32(0x01020304);
s.ap_hs->subnet_mask = L_CPU_TO_BE32(0xffff0000);
s.ap_hs->go_ip_addr = L_CPU_TO_BE32(0x01020305);
handshake_state_set_authenticator(s.sta_hs, false);
handshake_state_set_event_func(s.sta_hs, test_ap_sta_hs_event, &s);