Lines Matching full:lifetime
101 u32 lifetime;
565 * On TPK lifetime expiration, we have an option of either tearing down
573 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime expired for " MACSTR
577 lifetime expired for " MACSTR
940 /* Lifetime */
941 peer->lifetime = TPK_LIFETIME;
945 "lifetime");
946 peer->lifetime = 301;
950 "lifetime");
951 peer->lifetime = 0xffffffff;
955 sizeof(timeoutie), peer->lifetime);
956 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime %u seconds", peer->lifetime);
990 u32 lifetime;
997 * Lifetime */
1039 /* Lifetime */
1040 lifetime = peer->lifetime;
1044 "lifetime in response");
1045 lifetime++;
1049 sizeof(timeoutie), lifetime);
1050 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime %u seconds from initiator",
1051 lifetime);
1075 u32 lifetime;
1080 * Lifetime */
1120 /* Lifetime */
1121 lifetime = peer->lifetime;
1125 "lifetime in confirm");
1126 lifetime++;
1130 sizeof(timeoutie), lifetime);
1131 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime %u seconds",
1132 lifetime);
1158 u32 lifetime = 0;
1289 /* Lifetime */
1291 wpa_printf(MSG_INFO, "TDLS: No Key Lifetime IE in TPK M1");
1296 lifetime = WPA_GET_LE32(timeoutie->value);
1297 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime %u seconds", lifetime);
1298 if (lifetime < 300) {
1299 wpa_printf(MSG_INFO, "TDLS: Too short TPK lifetime");
1431 peer->lifetime = lifetime;
1453 u32 lifetime = peer->lifetime;
1458 if (lifetime > 3 && peer->initiator)
1459 lifetime -= 3;
1460 eloop_register_timeout(lifetime, 0, wpa_tdls_tpk_timeout,
1484 u32 lifetime;
1622 /* Lifetime */
1624 wpa_printf(MSG_INFO, "TDLS: No Key Lifetime IE in TPK M2");
1629 lifetime = WPA_GET_LE32(timeoutie->value);
1630 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime %u seconds in TPK M2",
1631 lifetime);
1632 if (lifetime != peer->lifetime) {
1633 wpa_printf(MSG_INFO, "TDLS: Unexpected TPK lifetime %u in "
1634 "TPK M2 (expected %u)", lifetime, peer->lifetime);
1681 u32 lifetime;
1766 wpa_printf(MSG_INFO, "TDLS: No Key Lifetime IE in TPK M3");
1772 lifetime = WPA_GET_LE32(timeoutie->value);
1773 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime %u seconds in TPK M3",
1774 lifetime);
1775 if (lifetime != peer->lifetime) {
1776 wpa_printf(MSG_INFO, "TDLS: Unexpected TPK lifetime %u in "
1777 "TPK M3 (expected %u)", lifetime, peer->lifetime);
1800 struct wpa_tdls_timeoutie *lifetime = (struct wpa_tdls_timeoutie *) ie;
1802 os_memset(lifetime, 0, ie_len);
1803 lifetime->ie_type = WLAN_EID_TIMEOUT_INTERVAL;
1804 lifetime->ie_len = sizeof(struct wpa_tdls_timeoutie) - 2;
1805 lifetime->interval_type = WLAN_TIMEOUT_KEY_LIFETIME;
1806 WPA_PUT_LE32(lifetime->value, tsecs);