Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:mesh_rsn

26 #include "mesh_rsn.h"
80 struct mesh_rsn *mesh_rsn = ctx;
81 struct hostapd_data *hapd = mesh_rsn->wpa_s->ifmsh->bss[0];
100 struct mesh_rsn *mesh_rsn = ctx;
115 return wpa_drv_set_key(mesh_rsn->wpa_s, alg, addr, idx,
122 struct mesh_rsn *mesh_rsn = ctx;
126 if (mesh_rsn->wpa_s->current_ssid->mode != WPAS_MODE_MESH)
129 hapd = mesh_rsn->wpa_s->ifmsh->bss[0];
132 eloop_cancel_timeout(mesh_auth_timer, mesh_rsn->wpa_s, sta);
134 mesh_mpm_auth_peer(mesh_rsn->wpa_s, addr);
139 static int __mesh_rsn_auth_init(struct mesh_rsn *rsn, const u8 *addr,
209 static void mesh_rsn_deinit(struct mesh_rsn *rsn)
220 struct mesh_rsn *mesh_rsn_auth_init(struct wpa_supplicant *wpa_s,
223 struct mesh_rsn *mesh_rsn;
231 mesh_rsn = os_zalloc(sizeof(*mesh_rsn));
232 if (mesh_rsn == NULL)
234 mesh_rsn->wpa_s = wpa_s;
235 mesh_rsn->pairwise_cipher = conf->pairwise_cipher;
236 mesh_rsn->group_cipher = conf->group_cipher;
237 mesh_rsn->mgmt_group_cipher = conf->mgmt_group_cipher;
239 if (__mesh_rsn_auth_init(mesh_rsn, wpa_s->own_addr,
241 mesh_rsn_deinit(mesh_rsn);
242 os_free(mesh_rsn);
246 bss->wpa_auth = mesh_rsn->auth;
264 ie = wpa_auth_get_wpa_ie(mesh_rsn->auth, &ie_len);
270 return mesh_rsn;
293 if (!index_within_array(groups, wpa_s->mesh_rsn->sae_group_index))
297 int group = groups[wpa_s->mesh_rsn->sae_group_index];
306 wpa_s->mesh_rsn->sae_group_index++;
397 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid)
404 mesh_rsn_derive_aek(struct mesh_rsn *rsn, struct sta_info *sta)
490 sta->mtk_len = wpa_cipher_key_len(wpa_s->mesh_rsn->pairwise_cipher);
505 mesh_rsn_derive_aek(wpa_s->mesh_rsn, sta);
510 * @mesh_rsn: mesh RSN context
515 int mesh_rsn_protect_frame(struct mesh_rsn *rsn, struct sta_info *sta,
736 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->group_cipher);
761 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->mgmt_group_cipher);