Home | History | Annotate | Download | only in rsn_supp

Lines Matching defs:lnkid

410  * @lnkid: Pointer to the beginning of Link Identifier IE
418 static int wpa_tdls_ftie_mic(const u8 *kck, u8 trans_seq, const u8 *lnkid,
426 int len = 2 * ETH_ALEN + 1 + 2 + lnkid[1] + 2 + rsnie[1] +
435 _lnkid = (const struct wpa_tdls_lnkid *) lnkid;
445 os_memcpy(pos, lnkid, 2 + lnkid[1]);
446 pos += 2 + lnkid[1];
474 * @lnkid: Pointer to the beginning of Link Identifier IE
481 u8 dtoken, const u8 *lnkid,
489 if (lnkid == NULL)
492 len = 2 + lnkid[1] + sizeof(rcode) + sizeof(dtoken) +
503 os_memcpy(pos, lnkid, 2 + lnkid[1]);
504 pos += 2 + lnkid[1];
529 const u8 *lnkid, const u8 *timeoutie,
535 wpa_tdls_ftie_mic(peer->tpk.kck, trans_seq, lnkid,
558 const u8 *lnkid, const struct wpa_tdls_ftie *ftie)
564 dtoken, lnkid, (u8 *) ftie, mic);
624 struct wpa_tdls_lnkid *lnkid)
626 lnkid->ie_type = WLAN_EID_LINK_ID;
627 lnkid->ie_len = 3 * ETH_ALEN;
628 os_memcpy(lnkid->bssid, sm->bssid, ETH_ALEN);
630 os_memcpy(lnkid->init_sta, sm->own_addr, ETH_ALEN);
631 os_memcpy(lnkid->resp_sta, peer->addr, ETH_ALEN);
633 os_memcpy(lnkid->init_sta, peer->addr, ETH_ALEN);
634 os_memcpy(lnkid->resp_sta, sm->own_addr, ETH_ALEN);
643 struct wpa_tdls_lnkid lnkid;
707 wpa_tdls_linkid(sm, peer, &lnkid);
709 dialog_token, (u8 *) &lnkid, (u8 *) ftie,
778 struct wpa_tdls_lnkid *lnkid;
811 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
816 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
831 (u8 *) lnkid, ftie) < 0) {
1070 struct wpa_tdls_lnkid *lnkid,
1139 wpa_tdls_ftie_mic(peer->tpk.kck, 2, (u8 *) lnkid, peer->rsnie_p,
1153 struct wpa_tdls_lnkid *lnkid,
1220 wpa_tdls_ftie_mic(peer->tpk.kck, 3, (u8 *) lnkid, peer->rsnie_p,
1249 const struct wpa_tdls_lnkid *lnkid;
1271 if (!kde.lnkid) {
1277 lnkid = (const struct wpa_tdls_lnkid *) kde.lnkid;
1279 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
1281 " BSS " MACSTR, MAC2STR(lnkid->bssid));
1341 struct wpa_tdls_lnkid *lnkid;
1389 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
1395 kde.lnkid, kde.lnkid_len);
1396 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
1397 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
1641 if (wpa_tdls_send_tpk_m2(sm, src_addr, dtoken, lnkid, peer) < 0) {
1695 struct wpa_tdls_lnkid *lnkid;
1758 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
1764 kde.lnkid, kde.lnkid_len);
1765 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
1767 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
1862 if (wpa_supplicant_verify_tdls_mic(2, peer, (u8 *) lnkid,
1879 wpa_tdls_send_tpk_m3(sm, src_addr, dtoken, lnkid, peer);
1901 struct wpa_tdls_lnkid *lnkid;
1942 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
1947 (u8 *) kde.lnkid, kde.lnkid_len);
1948 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
1950 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
2009 if (wpa_supplicant_verify_tdls_mic(3, peer, (u8 *) lnkid,