Lines Matching refs:p
34 static void passphrase_deinit(struct wlantest_passphrase *p) in passphrase_deinit() argument
36 dl_list_del(&p->list); in passphrase_deinit()
37 os_free(p); in passphrase_deinit()
89 struct wlantest_passphrase *p, *pn; in wlantest_deinit() local
101 dl_list_for_each_safe(p, pn, &wt->passphrase, in wlantest_deinit()
103 passphrase_deinit(p); in wlantest_deinit()
127 struct wlantest_passphrase *p; in add_passphrase() local
132 p = os_zalloc(sizeof(*p)); in add_passphrase()
133 if (p == NULL) in add_passphrase()
135 os_memcpy(p->passphrase, passphrase, len); in add_passphrase()
136 dl_list_add(&wt->passphrase, &p->list); in add_passphrase()
161 struct wlantest_pmk *p; in add_pmk_file() local
181 p = os_zalloc(sizeof(*p)); in add_pmk_file()
182 if (p == NULL) in add_pmk_file()
184 os_memcpy(p->pmk, pmk, pmk_len); in add_pmk_file()
185 p->pmk_len = pmk_len; in add_pmk_file()
186 dl_list_add(&wt->pmk, &p->list); in add_pmk_file()
192 p = os_zalloc(sizeof(*p)); in add_pmk_file()
193 if (p == NULL) in add_pmk_file()
195 os_memcpy(p->pmk, pmk, PMK_LEN); in add_pmk_file()
196 p->pmk_len = PMK_LEN; in add_pmk_file()
197 dl_list_add(&wt->pmk, &p->list); in add_pmk_file()
213 struct wlantest_ptk *p; in add_ptk_file() local
235 p = os_zalloc(sizeof(*p)); in add_ptk_file()
236 if (p == NULL) in add_ptk_file()
239 os_memcpy(p->ptk.tk, ptk, ptk_len); in add_ptk_file()
240 p->ptk.tk_len = ptk_len; in add_ptk_file()
241 p->ptk_len = 32 + ptk_len; in add_ptk_file()
243 os_memcpy(p->ptk.kck, ptk, 16); in add_ptk_file()
244 p->ptk.kck_len = 16; in add_ptk_file()
245 os_memcpy(p->ptk.kek, ptk + 16, 16); in add_ptk_file()
246 p->ptk.kek_len = 16; in add_ptk_file()
247 os_memcpy(p->ptk.tk, ptk + 32, ptk_len - 32); in add_ptk_file()
248 p->ptk.tk_len = ptk_len - 32; in add_ptk_file()
249 p->ptk_len = ptk_len; in add_ptk_file()
251 dl_list_add(&wt->ptk, &p->list); in add_ptk_file()