• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/wpa/wpa_supplicant/

Lines Matching defs:mesh_rsn

26 #include "mesh_rsn.h"
81 struct mesh_rsn *mesh_rsn = ctx;
82 struct hostapd_data *hapd = mesh_rsn->wpa_s->ifmsh->bss[0];
105 struct mesh_rsn *mesh_rsn = ctx;
120 return wpa_drv_set_key(mesh_rsn->wpa_s, alg, addr, idx,
127 struct mesh_rsn *mesh_rsn = ctx;
131 if (mesh_rsn->wpa_s->current_ssid->mode != WPAS_MODE_MESH)
134 hapd = mesh_rsn->wpa_s->ifmsh->bss[0];
137 eloop_cancel_timeout(mesh_auth_timer, mesh_rsn->wpa_s, sta);
139 mesh_mpm_auth_peer(mesh_rsn->wpa_s, addr);
144 static int __mesh_rsn_auth_init(struct mesh_rsn *rsn, const u8 *addr,
217 static void mesh_rsn_deinit(struct mesh_rsn *rsn)
228 struct mesh_rsn *mesh_rsn_auth_init(struct wpa_supplicant *wpa_s,
231 struct mesh_rsn *mesh_rsn;
239 mesh_rsn = os_zalloc(sizeof(*mesh_rsn));
240 if (mesh_rsn == NULL)
242 mesh_rsn->wpa_s = wpa_s;
243 mesh_rsn->pairwise_cipher = conf->pairwise_cipher;
244 mesh_rsn->group_cipher = conf->group_cipher;
245 mesh_rsn->mgmt_group_cipher = conf->mgmt_group_cipher;
247 if (__mesh_rsn_auth_init(mesh_rsn, wpa_s->own_addr,
249 mesh_rsn_deinit(mesh_rsn);
250 os_free(mesh_rsn);
254 bss->wpa_auth = mesh_rsn->auth;
272 ie = wpa_auth_get_wpa_ie(mesh_rsn->auth, &ie_len);
278 return mesh_rsn;
301 if (!index_within_array(groups, wpa_s->mesh_rsn->sae_group_index))
305 int group = groups[wpa_s->mesh_rsn->sae_group_index];
314 wpa_s->mesh_rsn->sae_group_index++;
416 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid)
423 mesh_rsn_derive_aek(struct mesh_rsn *rsn, struct sta_info *sta)
509 sta->mtk_len = wpa_cipher_key_len(wpa_s->mesh_rsn->pairwise_cipher);
524 mesh_rsn_derive_aek(wpa_s->mesh_rsn, sta);
529 * @mesh_rsn: mesh RSN context
534 int mesh_rsn_protect_frame(struct mesh_rsn *rsn, struct sta_info *sta,
757 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->group_cipher);
782 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->mgmt_group_cipher);