Lines Matching refs:ctx
93 static void _wpa_supplicant_set_state(void *ctx, wpa_states state)
95 struct wpa_supplicant *wpa_s = ctx;
100 static wpa_states _wpa_supplicant_get_state(void *ctx)
102 struct wpa_supplicant *wpa_s = ctx;
176 static void wpa_supplicant_set_config_blob(void *ctx,
179 struct wpa_supplicant *wpa_s = ctx;
185 wpa_supplicant_get_config_blob(void *ctx, const char *name)
187 struct wpa_supplicant *wpa_s = ctx;
233 struct wpa_sm_ctx *ctx;
238 ctx = os_zalloc(sizeof(*ctx));
239 assert(ctx != NULL);
241 ctx->ctx = wpa_s;
242 ctx->set_state = _wpa_supplicant_set_state;
243 ctx->get_state = _wpa_supplicant_get_state;
244 ctx->deauthenticate = _wpa_supplicant_deauthenticate;
245 ctx->disassociate = _wpa_supplicant_disassociate;
246 ctx->set_key = wpa_supplicant_set_key;
247 ctx->get_network_ctx = wpa_supplicant_get_network_ctx;
248 ctx->get_bssid = wpa_supplicant_get_bssid;
249 ctx->ether_send = wpa_ether_send;
250 ctx->get_beacon_ie = wpa_supplicant_get_beacon_ie;
251 ctx->alloc_eapol = _wpa_alloc_eapol;
252 ctx->cancel_auth_timeout = _wpa_supplicant_cancel_auth_timeout;
253 ctx->add_pmkid = wpa_supplicant_add_pmkid;
254 ctx->remove_pmkid = wpa_supplicant_remove_pmkid;
255 ctx->set_config_blob = wpa_supplicant_set_config_blob;
256 ctx->get_config_blob = wpa_supplicant_get_config_blob;
257 ctx->mlme_setprotection = wpa_supplicant_mlme_setprotection;
259 wpa_s->wpa = wpa_sm_init(ctx);