Home | History | Annotate | Download | only in rsn_supp

Lines Matching refs:sm

178 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state)
180 WPA_ASSERT(sm->ctx->set_state);
181 sm->ctx->set_state(sm->ctx->ctx, state);
184 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm)
186 WPA_ASSERT(sm->ctx->get_state);
187 return sm->ctx->get_state(sm->ctx->ctx);
190 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, int reason_code)
192 WPA_ASSERT(sm->ctx->deauthenticate);
193 sm->ctx->deauthenticate(sm->ctx->ctx, reason_code);
196 static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg,
201 WPA_ASSERT(sm->ctx->set_key);
202 return sm->ctx->set_key(sm->ctx->ctx, alg, addr, key_idx, set_tx,
206 static inline void * wpa_sm_get_network_ctx(struct wpa_sm *sm)
208 WPA_ASSERT(sm->ctx->get_network_ctx);
209 return sm->ctx->get_network_ctx(sm->ctx->ctx);
212 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid)
214 WPA_ASSERT(sm->ctx->get_bssid);
215 return sm->ctx->get_bssid(sm->ctx->ctx, bssid);
218 static inline int wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest,
221 WPA_ASSERT(sm->ctx->ether_send);
222 return sm->ctx->ether_send(sm->ctx->ctx, dest, proto, buf, len);
225 static inline int wpa_sm_get_beacon_ie(struct wpa_sm *sm)
227 WPA_ASSERT(sm->ctx->get_beacon_ie);
228 return sm->ctx->get_beacon_ie(sm->ctx->ctx);
231 static inline void wpa_sm_cancel_auth_timeout(struct wpa_sm *sm)
233 WPA_ASSERT(sm->ctx->cancel_auth_timeout);
234 sm->ctx->cancel_auth_timeout(sm->ctx->ctx);
237 static inline u8 * wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type,
241 WPA_ASSERT(sm->ctx->alloc_eapol);
242 return sm->ctx->alloc_eapol(sm->ctx->ctx, type, data, data_len,
246 static inline int wpa_sm_add_pmkid(struct wpa_sm *sm, void *network_ctx,
251 WPA_ASSERT(sm->ctx->add_pmkid);
252 return sm->ctx->add_pmkid(sm->ctx->ctx, network_ctx, bssid, pmkid,
256 static inline int wpa_sm_remove_pmkid(struct wpa_sm *sm, void *network_ctx,
260 WPA_ASSERT(sm->ctx->remove_pmkid);
261 return sm->ctx->remove_pmkid(sm->ctx->ctx, network_ctx, bssid, pmkid,
265 static inline int wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr,
268 WPA_ASSERT(sm->ctx->mlme_setprotection);
269 return sm->ctx->mlme_setprotection(sm->ctx->ctx, addr, protect_type,
273 static inline int wpa_sm_update_ft_ies(struct wpa_sm *sm, const u8 *md,
276 if (sm->ctx->update_ft_ies)
277 return sm->ctx->update_ft_ies(sm->ctx->ctx, md, ies, ies_len);
281 static inline int wpa_sm_send_ft_action(struct wpa_sm *sm, u8 action,
285 if (sm->ctx->send_ft_action)
286 return sm->ctx->send_ft_action(sm->ctx->ctx, action, target_ap,
291 static inline int wpa_sm_mark_authenticated(struct wpa_sm *sm,
294 if (sm->ctx->mark_authenticated)
295 return sm->ctx->mark_authenticated(sm->ctx->ctx, target_ap);
299 static inline void wpa_sm_set_rekey_offload(struct wpa_sm *sm)
301 if (!sm->ctx->set_rekey_offload)
303 sm->ctx->set_rekey_offload(sm->ctx->ctx, sm->ptk.kek, sm->ptk.kek_len,
304 sm->ptk.kck, sm->ptk.kck_len,
305 sm->rx_replay_counter);
309 static inline int wpa_sm_tdls_get_capa(struct wpa_sm *sm,
314 if (sm->ctx->tdls_get_capa)
315 return sm->ctx->tdls_get_capa(sm->ctx->ctx, tdls_supported,
320 static inline int wpa_sm_send_tdls_mgmt(struct wpa_sm *sm, const u8 *dst,
326 if (sm->ctx->send_tdls_mgmt)
327 return sm->ctx->send_tdls_mgmt(sm->ctx->ctx, dst, action_code,
334 static inline int wpa_sm_tdls_oper(struct wpa_sm *sm, int oper,
337 if (sm->ctx->tdls_oper)
338 return sm->ctx->tdls_oper(sm->ctx->ctx, oper, peer);
343 wpa_sm_tdls_peer_addset(struct wpa_sm *sm, const u8 *addr, int add,
353 if (sm->ctx->tdls_peer_addset)
354 return sm->ctx->tdls_peer_addset(sm->ctx->ctx, addr, add,
367 wpa_sm_tdls_enable_channel_switch(struct wpa_sm *sm, const u8 *addr,
371 if (sm->ctx->tdls_enable_channel_switch)
372 return sm->ctx->tdls_enable_channel_switch(sm->ctx->ctx, addr,
379 wpa_sm_tdls_disable_channel_switch(struct wpa_sm *sm, const u8 *addr)
381 if (sm->ctx->tdls_disable_channel_switch)
382 return sm->ctx->tdls_disable_channel_switch(sm->ctx->ctx, addr);
387 static inline int wpa_sm_key_mgmt_set_pmk(struct wpa_sm *sm,
390 if (!sm->ctx->key_mgmt_set_pmk)
392 return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len);
395 static inline void wpa_sm_fils_hlp_rx(struct wpa_sm *sm,
399 if (sm->ctx->fils_hlp_rx)
400 sm->ctx->fils_hlp_rx(sm->ctx->ctx, dst, src, pkt, pkt_len);
403 static inline int wpa_sm_channel_info(struct wpa_sm *sm,
406 if (!sm->ctx->channel_info)
408 return sm->ctx->channel_info(sm->ctx->ctx, ci);
412 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk,
415 int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst,
420 int wpa_supplicant_send_4_of_4(struct wpa_sm *sm, const unsigned char *dst,
425 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr,
428 void wpa_tdls_assoc(struct wpa_sm *sm);
429 void wpa_tdls_disassoc(struct wpa_sm *sm);