Home | History | Annotate | Download | only in rsn_supp

Lines Matching refs:lnkid

424  * @lnkid: Pointer to the beginning of Link Identifier IE
432 static int wpa_tdls_ftie_mic(const u8 *kck, u8 trans_seq, const u8 *lnkid,
440 int len = 2 * ETH_ALEN + 1 + 2 + lnkid[1] + 2 + rsnie[1] +
449 _lnkid = (const struct wpa_tdls_lnkid *) lnkid;
459 os_memcpy(pos, lnkid, 2 + lnkid[1]);
460 pos += 2 + lnkid[1];
488 * @lnkid: Pointer to the beginning of Link Identifier IE
495 u8 dtoken, const u8 *lnkid,
503 if (lnkid == NULL)
506 len = 2 + lnkid[1] + sizeof(rcode) + sizeof(dtoken) +
517 os_memcpy(pos, lnkid, 2 + lnkid[1]);
518 pos += 2 + lnkid[1];
543 const u8 *lnkid, const u8 *timeoutie,
549 wpa_tdls_ftie_mic(peer->tpk.kck, trans_seq, lnkid,
572 const u8 *lnkid, const struct wpa_tdls_ftie *ftie)
578 dtoken, lnkid, (u8 *) ftie, mic);
646 struct wpa_tdls_lnkid *lnkid)
648 lnkid->ie_type = WLAN_EID_LINK_ID;
649 lnkid->ie_len = 3 * ETH_ALEN;
650 os_memcpy(lnkid->bssid, sm->bssid, ETH_ALEN);
652 os_memcpy(lnkid->init_sta, sm->own_addr, ETH_ALEN);
653 os_memcpy(lnkid->resp_sta, peer->addr, ETH_ALEN);
655 os_memcpy(lnkid->init_sta, peer->addr, ETH_ALEN);
656 os_memcpy(lnkid->resp_sta, sm->own_addr, ETH_ALEN);
665 struct wpa_tdls_lnkid lnkid;
729 wpa_tdls_linkid(sm, peer, &lnkid);
731 dialog_token, (u8 *) &lnkid, (u8 *) ftie,
805 struct wpa_tdls_lnkid *lnkid;
838 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
843 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
858 (u8 *) lnkid, ftie) < 0) {
1104 struct wpa_tdls_lnkid *lnkid,
1174 wpa_tdls_ftie_mic(peer->tpk.kck, 2, (u8 *) lnkid, peer->rsnie_p,
1188 struct wpa_tdls_lnkid *lnkid,
1256 wpa_tdls_ftie_mic(peer->tpk.kck, 3, (u8 *) lnkid, peer->rsnie_p,
1285 const struct wpa_tdls_lnkid *lnkid;
1307 if (!kde.lnkid) {
1313 lnkid = (const struct wpa_tdls_lnkid *) kde.lnkid;
1315 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
1317 " BSS " MACSTR, MAC2STR(lnkid->bssid));
1447 struct wpa_tdls_lnkid *lnkid;
1520 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
1526 kde.lnkid, kde.lnkid_len);
1527 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
1528 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
1746 if (wpa_tdls_send_tpk_m2(sm, src_addr, dtoken, lnkid, peer) < 0) {
1814 struct wpa_tdls_lnkid *lnkid;
1892 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
1898 kde.lnkid, kde.lnkid_len);
1899 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
1901 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
2009 if (wpa_supplicant_verify_tdls_mic(2, peer, (u8 *) lnkid,
2032 if (wpa_tdls_send_tpk_m3(sm, src_addr, dtoken, lnkid, peer) < 0) {
2060 struct wpa_tdls_lnkid *lnkid;
2100 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
2105 (u8 *) kde.lnkid, kde.lnkid_len);
2106 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
2108 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
2165 if (wpa_supplicant_verify_tdls_mic(3, peer, (u8 *) lnkid,