Lines Matching refs:e
40 struct ptksa_cache_entry *e, *next; in ptksa_cache_expire() local
48 dl_list_for_each_safe(e, next, &ptksa->ptksa, in ptksa_cache_expire()
50 if (e->expiration > now.sec) in ptksa_cache_expire()
54 MAC2STR(e->addr)); in ptksa_cache_expire()
56 if (e->cb && e->ctx) in ptksa_cache_expire()
57 e->cb(e); in ptksa_cache_expire()
59 ptksa_cache_free_entry(ptksa, e); in ptksa_cache_expire()
68 struct ptksa_cache_entry *e; in ptksa_cache_set_expiration() local
77 e = dl_list_first(&ptksa->ptksa, struct ptksa_cache_entry, list); in ptksa_cache_set_expiration()
78 if (!e) in ptksa_cache_set_expiration()
82 sec = e->expiration - now.sec; in ptksa_cache_set_expiration()
114 struct ptksa_cache_entry *e, *next; in ptksa_cache_deinit() local
121 dl_list_for_each_safe(e, next, &ptksa->ptksa, in ptksa_cache_deinit()
123 ptksa_cache_free_entry(ptksa, e); in ptksa_cache_deinit()
140 struct ptksa_cache_entry *e; in ptksa_cache_get() local
145 dl_list_for_each(e, &ptksa->ptksa, struct ptksa_cache_entry, list) { in ptksa_cache_get()
146 if ((!addr || ether_addr_equal(e->addr, addr)) && in ptksa_cache_get()
147 (cipher == WPA_CIPHER_NONE || cipher == e->cipher)) in ptksa_cache_get()
148 return e; in ptksa_cache_get()
167 struct ptksa_cache_entry *e; in ptksa_cache_list() local
183 dl_list_for_each(e, &ptksa->ptksa, struct ptksa_cache_entry, list) { in ptksa_cache_list()
185 i, MAC2STR(e->addr)); in ptksa_cache_list()
191 wpa_cipher_txt(e->cipher), in ptksa_cache_list()
192 e->expiration - now.sec); in ptksa_cache_list()
197 ret = wpa_snprintf_hex(pos, buf + len - pos, e->ptk.tk, in ptksa_cache_list()
198 e->ptk.tk_len); in ptksa_cache_list()
208 ret = wpa_snprintf_hex(pos, buf + len - pos, e->ptk.kdk, in ptksa_cache_list()
209 e->ptk.kdk_len); in ptksa_cache_list()
235 struct ptksa_cache_entry *e, *next; in ptksa_cache_flush() local
241 dl_list_for_each_safe(e, next, &ptksa->ptksa, struct ptksa_cache_entry, in ptksa_cache_flush()
243 if ((!addr || ether_addr_equal(e->addr, addr)) && in ptksa_cache_flush()
244 (cipher == WPA_CIPHER_NONE || cipher == e->cipher)) { in ptksa_cache_flush()
247 MAC2STR(e->addr)); in ptksa_cache_flush()
249 ptksa_cache_free_entry(ptksa, e); in ptksa_cache_flush()
282 (struct ptksa_cache_entry *e), in ptksa_cache_add()
377 void (*cb)(struct ptksa_cache_entry *e), void *ctx, u32 akmp) in ptksa_cache_add() argument