Home | History | Annotate | Download | only in rsn_supp

Lines Matching refs:sm

112 static inline void wpa_sm_set_state(struct wpa_sm *sm, wpa_states state)
114 WPA_ASSERT(sm->ctx->set_state);
115 sm->ctx->set_state(sm->ctx->ctx, state);
118 static inline wpa_states wpa_sm_get_state(struct wpa_sm *sm)
120 WPA_ASSERT(sm->ctx->get_state);
121 return sm->ctx->get_state(sm->ctx->ctx);
124 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, int reason_code)
126 WPA_ASSERT(sm->ctx->deauthenticate);
127 sm->ctx->deauthenticate(sm->ctx->ctx, reason_code);
130 static inline void wpa_sm_disassociate(struct wpa_sm *sm, int reason_code)
132 WPA_ASSERT(sm->ctx->disassociate);
133 sm->ctx->disassociate(sm->ctx->ctx, reason_code);
136 static inline int wpa_sm_set_key(struct wpa_sm *sm, wpa_alg alg,
141 WPA_ASSERT(sm->ctx->set_key);
142 return sm->ctx->set_key(sm->ctx->ctx, alg, addr, key_idx, set_tx,
146 static inline void * wpa_sm_get_network_ctx(struct wpa_sm *sm)
148 WPA_ASSERT(sm->ctx->get_network_ctx);
149 return sm->ctx->get_network_ctx(sm->ctx->ctx);
152 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid)
154 WPA_ASSERT(sm->ctx->get_bssid);
155 return sm->ctx->get_bssid(sm->ctx->ctx, bssid);
158 static inline int wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest,
161 WPA_ASSERT(sm->ctx->ether_send);
162 return sm->ctx->ether_send(sm->ctx->ctx, dest, proto, buf, len);
165 static inline int wpa_sm_get_beacon_ie(struct wpa_sm *sm)
167 WPA_ASSERT(sm->ctx->get_beacon_ie);
168 return sm->ctx->get_beacon_ie(sm->ctx->ctx);
171 static inline void wpa_sm_cancel_auth_timeout(struct wpa_sm *sm)
173 WPA_ASSERT(sm->ctx->cancel_auth_timeout);
174 sm->ctx->cancel_auth_timeout(sm->ctx->ctx);
177 static inline u8 * wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type,
181 WPA_ASSERT(sm->ctx->alloc_eapol);
182 return sm->ctx->alloc_eapol(sm->ctx->ctx, type, data, data_len,
186 static inline int wpa_sm_add_pmkid(struct wpa_sm *sm, const u8 *bssid,
189 WPA_ASSERT(sm->ctx->add_pmkid);
190 return sm->ctx->add_pmkid(sm->ctx->ctx, bssid, pmkid);
193 static inline int wpa_sm_remove_pmkid(struct wpa_sm *sm, const u8 *bssid,
196 WPA_ASSERT(sm->ctx->remove_pmkid);
197 return sm->ctx->remove_pmkid(sm->ctx->ctx, bssid, pmkid);
200 static inline int wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr,
203 WPA_ASSERT(sm->ctx->mlme_setprotection);
204 return sm->ctx->mlme_setprotection(sm->ctx->ctx, addr, protect_type,
208 static inline int wpa_sm_update_ft_ies(struct wpa_sm *sm, const u8 *md,
211 if (sm->ctx->update_ft_ies)
212 return sm->ctx->update_ft_ies(sm->ctx->ctx, md, ies, ies_len);
216 static inline int wpa_sm_send_ft_action(struct wpa_sm *sm, u8 action,
220 if (sm->ctx->send_ft_action)
221 return sm->ctx->send_ft_action(sm->ctx->ctx, action, target_ap,
227 void wpa_eapol_key_send(struct wpa_sm *sm, const u8 *kck,
230 int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst,
235 int wpa_supplicant_send_4_of_4(struct wpa_sm *sm, const unsigned char *dst,
241 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr,