mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
fragattack: send rekey request with replay counter of one
This commit is contained in:
parent
9a75e4790f
commit
805bd55942
@ -220,9 +220,9 @@ void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise)
|
||||
key_info |= WPA_KEY_INFO_KEY_TYPE;
|
||||
WPA_PUT_BE16(reply->key_info, key_info);
|
||||
WPA_PUT_BE16(reply->key_length, 0);
|
||||
inc_byte_array(sm->request_counter, WPA_REPLAY_COUNTER_LEN);
|
||||
os_memcpy(reply->replay_counter, sm->request_counter,
|
||||
WPA_REPLAY_COUNTER_LEN);
|
||||
inc_byte_array(sm->request_counter, WPA_REPLAY_COUNTER_LEN);
|
||||
|
||||
mic = (u8 *) (reply + 1);
|
||||
WPA_PUT_BE16(mic + mic_len, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user