Lines Matching refs:ftie
456 const u8 *ftie, u8 *mic) in wpa_tdls_ftie_mic() argument
463 2 + timeoutie[1] + 2 + ftie[1]; in wpa_tdls_ftie_mic()
490 os_memcpy(pos, ftie, 2 + ftie[1]); in wpa_tdls_ftie_mic()
493 pos += 2 + ftie[1]; in wpa_tdls_ftie_mic()
518 const u8 *ftie, u8 *mic) in wpa_tdls_key_mic_teardown() argument
529 sizeof(trans_seq) + 2 + ftie[1]; in wpa_tdls_key_mic_teardown()
549 os_memcpy(pos, ftie, 2 + ftie[1]); in wpa_tdls_key_mic_teardown()
552 pos += 2 + ftie[1]; in wpa_tdls_key_mic_teardown()
566 const struct wpa_tdls_ftie *ftie) in wpa_supplicant_verify_tdls_mic() argument
572 peer->rsnie_p, timeoutie, (u8 *) ftie, in wpa_supplicant_verify_tdls_mic()
574 if (os_memcmp_const(mic, ftie->mic, 16) != 0) { in wpa_supplicant_verify_tdls_mic()
578 ftie->mic, 16); in wpa_supplicant_verify_tdls_mic()
594 const u8 *lnkid, const struct wpa_tdls_ftie *ftie) in wpa_supplicant_verify_tdls_mic_teardown() argument
600 dtoken, lnkid, (u8 *) ftie, mic); in wpa_supplicant_verify_tdls_mic_teardown()
601 if (os_memcmp_const(mic, ftie->mic, 16) != 0) { in wpa_supplicant_verify_tdls_mic_teardown()
728 struct wpa_tdls_ftie *ftie; in wpa_tdls_send_teardown() local
764 ielen += sizeof(*ftie); in wpa_tdls_send_teardown()
779 ftie = (struct wpa_tdls_ftie *) pos; in wpa_tdls_send_teardown()
780 ftie->ie_type = WLAN_EID_FAST_BSS_TRANSITION; in wpa_tdls_send_teardown()
782 os_memcpy(ftie->Anonce, peer->rnonce, WPA_NONCE_LEN); in wpa_tdls_send_teardown()
783 os_memcpy(ftie->Snonce, peer->inonce, WPA_NONCE_LEN); in wpa_tdls_send_teardown()
784 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_teardown()
785 pos = (u8 *) (ftie + 1); in wpa_tdls_send_teardown()
790 ftie->ie_len += 170; in wpa_tdls_send_teardown()
797 (u8 *) ftie, pos - (u8 *) ftie); in wpa_tdls_send_teardown()
802 dialog_token, (u8 *) &lnkid, (u8 *) ftie, in wpa_tdls_send_teardown()
803 ftie->mic); in wpa_tdls_send_teardown()
913 struct wpa_tdls_ftie *ftie; in wpa_tdls_recv_teardown() local
962 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie)) { in wpa_tdls_recv_teardown()
967 ftie = (struct wpa_tdls_ftie *) kde.ftie; in wpa_tdls_recv_teardown()
972 (u8 *) lnkid, ftie) < 0) { in wpa_tdls_recv_teardown()
1045 struct wpa_tdls_ftie *ftie; in wpa_tdls_send_tpk_m1() local
1144 ftie = (struct wpa_tdls_ftie *) pos; in wpa_tdls_send_tpk_m1()
1145 ftie->ie_type = WLAN_EID_FAST_BSS_TRANSITION; in wpa_tdls_send_tpk_m1()
1146 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_tpk_m1()
1157 os_memcpy(ftie->Snonce, peer->inonce, WPA_NONCE_LEN); in wpa_tdls_send_tpk_m1()
1160 (u8 *) ftie, sizeof(struct wpa_tdls_ftie)); in wpa_tdls_send_tpk_m1()
1162 pos = (u8 *) (ftie + 1); in wpa_tdls_send_tpk_m1()
1168 ftie->ie_len += 170; in wpa_tdls_send_tpk_m1()
1227 struct wpa_tdls_ftie *ftie; in wpa_tdls_send_tpk_m2() local
1253 ftie = (struct wpa_tdls_ftie *) pos; in wpa_tdls_send_tpk_m2()
1254 ftie->ie_type = WLAN_EID_FAST_BSS_TRANSITION; in wpa_tdls_send_tpk_m2()
1256 os_memcpy(ftie->Anonce, peer->rnonce, WPA_NONCE_LEN); in wpa_tdls_send_tpk_m2()
1257 os_memcpy(ftie->Snonce, peer->inonce, WPA_NONCE_LEN); in wpa_tdls_send_tpk_m2()
1258 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_tpk_m2()
1260 (u8 *) ftie, sizeof(*ftie)); in wpa_tdls_send_tpk_m2()
1262 pos = (u8 *) (ftie + 1); in wpa_tdls_send_tpk_m2()
1268 ftie->ie_len += 170; in wpa_tdls_send_tpk_m2()
1291 (u8 *) &timeoutie, (u8 *) ftie, ftie->mic); in wpa_tdls_send_tpk_m2()
1295 ftie->mic[0] ^= 0x01; in wpa_tdls_send_tpk_m2()
1316 struct wpa_tdls_ftie *ftie; in wpa_tdls_send_tpk_m3() local
1345 ftie = (struct wpa_tdls_ftie *) pos; in wpa_tdls_send_tpk_m3()
1346 ftie->ie_type = WLAN_EID_FAST_BSS_TRANSITION; in wpa_tdls_send_tpk_m3()
1348 os_memcpy(ftie->Anonce, peer->rnonce, WPA_NONCE_LEN); in wpa_tdls_send_tpk_m3()
1349 os_memcpy(ftie->Snonce, peer->inonce, WPA_NONCE_LEN); in wpa_tdls_send_tpk_m3()
1350 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_tpk_m3()
1352 pos = (u8 *) (ftie + 1); in wpa_tdls_send_tpk_m3()
1358 ftie->ie_len += 170; in wpa_tdls_send_tpk_m3()
1381 (u8 *) &timeoutie, (u8 *) ftie, ftie->mic); in wpa_tdls_send_tpk_m3()
1385 ftie->mic[0] ^= 0x01; in wpa_tdls_send_tpk_m3()
1755 struct wpa_tdls_ftie *ftie = NULL; in wpa_tdls_process_tpk_m1() local
1917 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie) || in wpa_tdls_process_tpk_m1()
1995 ftie = (struct wpa_tdls_ftie *) kde.ftie; in wpa_tdls_process_tpk_m1()
2000 if (os_memcmp(peer->inonce, ftie->Snonce, WPA_NONCE_LEN) != 0) { in wpa_tdls_process_tpk_m1()
2010 os_memcpy(peer->inonce, ftie->Snonce, WPA_NONCE_LEN); in wpa_tdls_process_tpk_m1()
2141 struct wpa_tdls_ftie *ftie; in wpa_tdls_process_tpk_m2() local
2273 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie) || in wpa_tdls_process_tpk_m2()
2324 kde.ftie, sizeof(*ftie)); in wpa_tdls_process_tpk_m2()
2325 ftie = (struct wpa_tdls_ftie *) kde.ftie; in wpa_tdls_process_tpk_m2()
2327 if (!os_memcmp(peer->inonce, ftie->Snonce, WPA_NONCE_LEN) == 0) { in wpa_tdls_process_tpk_m2()
2335 os_memcpy(peer->rnonce, ftie->Anonce, WPA_NONCE_LEN); in wpa_tdls_process_tpk_m2()
2361 (u8 *) timeoutie, ftie) < 0) { in wpa_tdls_process_tpk_m2()
2419 struct wpa_tdls_ftie *ftie; in wpa_tdls_process_tpk_m3() local
2484 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie)) { in wpa_tdls_process_tpk_m3()
2489 kde.ftie, sizeof(*ftie)); in wpa_tdls_process_tpk_m3()
2490 ftie = (struct wpa_tdls_ftie *) kde.ftie; in wpa_tdls_process_tpk_m3()
2505 if (!os_memcmp(peer->rnonce, ftie->Anonce, WPA_NONCE_LEN) == 0) { in wpa_tdls_process_tpk_m3()
2511 if (!os_memcmp(peer->inonce, ftie->Snonce, WPA_NONCE_LEN) == 0) { in wpa_tdls_process_tpk_m3()
2534 (u8 *) timeoutie, ftie) < 0) { in wpa_tdls_process_tpk_m3()