@ -354,9 +354,6 @@ static void handle_auth_ft_finish(void *ctx, const u8 *dst, const u8 *bssid,
# ifdef CONFIG_SAE
# define dot11RSNASAESync 5 /* attempts */
static struct wpabuf * auth_build_sae_commit ( struct hostapd_data * hapd ,
struct sta_info * sta , int update )
{
@ -517,9 +514,9 @@ static struct wpabuf * auth_build_token_req(struct hostapd_data *hapd,
}
static int sae_check_big_sync ( struct sta_info * sta )
static int sae_check_big_sync ( struct hostapd_data * hapd , struct sta_info * sta )
{
if ( sta - > sae - > sync > dot11RSNASAES ync) {
if ( sta - > sae - > sync > hapd- > conf - > sae_s ync) {
sta - > sae - > state = SAE_NOTHING ;
sta - > sae - > sync = 0 ;
return - 1 ;
@ -534,7 +531,7 @@ static void auth_sae_retransmit_timer(void *eloop_ctx, void *eloop_data)
struct sta_info * sta = eloop_data ;
int ret ;
if ( sae_check_big_sync ( sta) )
if ( sae_check_big_sync ( hapd, sta) )
return ;
sta - > sae - > sync + + ;
wpa_printf ( MSG_DEBUG , " SAE: Auth SAE retransmit timer for " MACSTR
@ -667,7 +664,7 @@ static int sae_sm_step(struct hostapd_data *hapd, struct sta_info *sta,
* In mesh case , follow SAE finite state machine and
* send Commit now , if sync count allows .
*/
if ( sae_check_big_sync ( sta) )
if ( sae_check_big_sync ( hapd, sta) )
return WLAN_STATUS_SUCCESS ;
sta - > sae - > sync + + ;
@ -699,7 +696,7 @@ static int sae_sm_step(struct hostapd_data *hapd, struct sta_info *sta,
case SAE_CONFIRMED :
sae_clear_retransmit_timer ( hapd , sta ) ;
if ( auth_transaction = = 1 ) {
if ( sae_check_big_sync ( sta) )
if ( sae_check_big_sync ( hapd, sta) )
return WLAN_STATUS_SUCCESS ;
sta - > sae - > sync + + ;
@ -727,7 +724,7 @@ static int sae_sm_step(struct hostapd_data *hapd, struct sta_info *sta,
ap_free_sta ( hapd , sta ) ;
wpa_auth_pmksa_remove ( hapd - > wpa_auth , sta - > addr ) ;
} else {
if ( sae_check_big_sync ( sta) )
if ( sae_check_big_sync ( hapd, sta) )
return WLAN_STATUS_SUCCESS ;
sta - > sae - > sync + + ;