Lines Matching refs:mesh_rsn
81 struct mesh_rsn *mesh_rsn = ctx; in auth_get_psk() local
82 struct hostapd_data *hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; in auth_get_psk()
106 struct mesh_rsn *mesh_rsn = ctx; in auth_set_key() local
121 return wpa_drv_set_key(mesh_rsn->wpa_s, -1, alg, addr, idx, in auth_set_key()
128 struct mesh_rsn *mesh_rsn = ctx; in auth_start_ampe() local
132 if (mesh_rsn->wpa_s->current_ssid->mode != WPAS_MODE_MESH) in auth_start_ampe()
135 hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; in auth_start_ampe()
138 eloop_cancel_timeout(mesh_auth_timer, mesh_rsn->wpa_s, sta); in auth_start_ampe()
140 mesh_mpm_auth_peer(mesh_rsn->wpa_s, addr); in auth_start_ampe()
149 struct mesh_rsn *rsn = ctx; in auth_for_each_sta()
162 static int __mesh_rsn_auth_init(struct mesh_rsn *rsn, const u8 *addr, in __mesh_rsn_auth_init()
235 static void mesh_rsn_deinit(struct mesh_rsn *rsn) in mesh_rsn_deinit()
246 struct mesh_rsn *mesh_rsn_auth_init(struct wpa_supplicant *wpa_s, in mesh_rsn_auth_init()
249 struct mesh_rsn *mesh_rsn; in mesh_rsn_auth_init() local
257 mesh_rsn = os_zalloc(sizeof(*mesh_rsn)); in mesh_rsn_auth_init()
258 if (mesh_rsn == NULL) in mesh_rsn_auth_init()
260 mesh_rsn->wpa_s = wpa_s; in mesh_rsn_auth_init()
261 mesh_rsn->pairwise_cipher = conf->pairwise_cipher; in mesh_rsn_auth_init()
262 mesh_rsn->group_cipher = conf->group_cipher; in mesh_rsn_auth_init()
263 mesh_rsn->mgmt_group_cipher = conf->mgmt_group_cipher; in mesh_rsn_auth_init()
265 if (__mesh_rsn_auth_init(mesh_rsn, wpa_s->own_addr, in mesh_rsn_auth_init()
267 mesh_rsn_deinit(mesh_rsn); in mesh_rsn_auth_init()
268 os_free(mesh_rsn); in mesh_rsn_auth_init()
272 bss->wpa_auth = mesh_rsn->auth; in mesh_rsn_auth_init()
290 ie = wpa_auth_get_wpa_ie(mesh_rsn->auth, &ie_len); in mesh_rsn_auth_init()
296 return mesh_rsn; in mesh_rsn_auth_init()
319 if (!index_within_array(groups, wpa_s->mesh_rsn->sae_group_index)) in mesh_rsn_sae_group()
323 int group = groups[wpa_s->mesh_rsn->sae_group_index]; in mesh_rsn_sae_group()
332 wpa_s->mesh_rsn->sae_group_index++; in mesh_rsn_sae_group()
434 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid) in mesh_rsn_get_pmkid()
441 mesh_rsn_derive_aek(struct mesh_rsn *rsn, struct sta_info *sta) in mesh_rsn_derive_aek()
527 sta->mtk_len = wpa_cipher_key_len(wpa_s->mesh_rsn->pairwise_cipher); in mesh_rsn_derive_mtk()
542 mesh_rsn_derive_aek(wpa_s->mesh_rsn, sta); in mesh_rsn_init_ampe_sta()
552 int mesh_rsn_protect_frame(struct mesh_rsn *rsn, struct sta_info *sta, in mesh_rsn_protect_frame()
771 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->group_cipher); in mesh_rsn_process_ampe()
795 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->mgmt_group_cipher); in mesh_rsn_process_ampe()