Lines Matching defs:kde
806 struct wpa_eapol_ie_parse kde;
833 if (wpa_supplicant_parse_ies((const u8 *) pos, ielen, &kde) < 0) {
838 if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) {
843 lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
848 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie)) {
853 ftie = (struct wpa_tdls_ftie *) kde.ftie;
1284 struct wpa_eapol_ie_parse kde;
1304 &kde) < 0)
1307 if (!kde.lnkid) {
1313 lnkid = (const struct wpa_tdls_lnkid *) kde.lnkid;
1341 static int copy_supp_rates(const struct wpa_eapol_ie_parse *kde,
1344 if (!kde->supp_rates) {
1350 kde->supp_rates + 2, kde->supp_rates_len - 2,
1351 kde->ext_supp_rates ? kde->ext_supp_rates + 2 : NULL,
1352 kde->ext_supp_rates_len - 2);
1357 static int copy_peer_ht_capab(const struct wpa_eapol_ie_parse *kde,
1360 if (!kde->ht_capabilities ||
1361 kde->ht_capabilities_len <
1375 os_memcpy(peer->ht_capabilities, kde->ht_capabilities,
1385 static int copy_peer_vht_capab(const struct wpa_eapol_ie_parse *kde,
1388 if (!kde->vht_capabilities ||
1389 kde->vht_capabilities_len <
1403 os_memcpy(peer->vht_capabilities, kde->vht_capabilities,
1413 static int copy_peer_ext_capab(const struct wpa_eapol_ie_parse *kde,
1416 if (!kde->ext_capab) {
1422 if (!peer->ext_capab || peer->ext_capab_len < kde->ext_capab_len - 2) {
1425 peer->ext_capab = os_zalloc(kde->ext_capab_len - 2);
1430 peer->ext_capab_len = kde->ext_capab_len - 2;
1431 os_memcpy(peer->ext_capab, kde->ext_capab + 2, peer->ext_capab_len);
1441 struct wpa_eapol_ie_parse kde;
1515 if (wpa_supplicant_parse_ies(cpos, ielen, &kde) < 0) {
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;
1537 if (copy_supp_rates(&kde, peer) < 0)
1540 if (copy_peer_ht_capab(&kde, peer) < 0)
1543 if (copy_peer_vht_capab(&kde, peer) < 0)
1546 if (copy_peer_ext_capab(&kde, peer) < 0)
1549 peer->qos_info = kde.qosinfo;
1551 peer->aid = kde.aid;
1579 if (kde.rsn_ie) {
1588 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie) ||
1589 kde.rsn_ie == NULL) {
1595 if (kde.rsn_ie_len > TDLS_MAX_IE_LEN) {
1602 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) {
1628 if (kde.key_lifetime == NULL) {
1633 timeoutie = (struct wpa_tdls_timeoutie *) kde.key_lifetime;
1666 ftie = (struct wpa_tdls_ftie *) kde.ftie;
1667 os_memcpy(peer->rsnie_i, kde.rsn_ie, kde.rsn_ie_len);
1668 peer->rsnie_i_len = kde.rsn_ie_len;
1692 hdr = (struct rsn_ie_hdr *) kde.rsn_ie;
1809 struct wpa_eapol_ie_parse kde;
1879 if (wpa_supplicant_parse_ies(pos, ielen, &kde) < 0) {
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;
1907 if (copy_supp_rates(&kde, peer) < 0)
1910 if (copy_peer_ht_capab(&kde, peer) < 0)
1913 if (copy_peer_vht_capab(&kde, peer) < 0)
1916 if (copy_peer_ext_capab(&kde, peer) < 0)
1919 peer->qos_info = kde.qosinfo;
1921 peer->aid = kde.aid;
1929 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie) ||
1930 kde.rsn_ie == NULL) {
1936 kde.rsn_ie, kde.rsn_ie_len);
1944 if (kde.rsn_ie_len != peer->rsnie_i_len ||
1945 os_memcmp(peer->rsnie_i, kde.rsn_ie, peer->rsnie_i_len) != 0) {
1951 kde.rsn_ie, kde.rsn_ie_len);
1956 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) {
1973 kde.ftie, sizeof(*ftie));
1974 ftie = (struct wpa_tdls_ftie *) kde.ftie;
1985 os_memcpy(peer->rsnie_p, kde.rsn_ie, kde.rsn_ie_len);
1986 peer->rsnie_p_len = kde.rsn_ie_len;
1990 if (kde.key_lifetime == NULL) {
1995 timeoutie = (struct wpa_tdls_timeoutie *) kde.key_lifetime;
2057 struct wpa_eapol_ie_parse kde;
2095 if (wpa_supplicant_parse_ies((const u8 *) pos, ielen, &kde) < 0) {
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;
2116 if (kde.ftie == NULL || kde.ftie_len < sizeof(*ftie)) {
2121 kde.ftie, sizeof(*ftie));
2122 ftie = (struct wpa_tdls_ftie *) kde.ftie;
2124 if (kde.rsn_ie == NULL) {
2129 kde.rsn_ie, kde.rsn_ie_len);
2130 if (kde.rsn_ie_len != peer->rsnie_p_len ||
2131 os_memcmp(kde.rsn_ie, peer->rsnie_p, peer->rsnie_p_len) != 0) {
2149 if (kde.key_lifetime == NULL) {
2153 timeoutie = (struct wpa_tdls_timeoutie *) kde.key_lifetime;