EAP server: Add support for configuring fragment size

This commit is contained in:
Jouni Malinen 2010-07-18 19:28:53 -07:00 committed by Jouni Malinen
parent f3a3e6987e
commit 7f6ec672ea
13 changed files with 22 additions and 5 deletions

View file

@ -136,7 +136,8 @@ static void * eap_wsc_init(struct eap_sm *sm)
os_free(data);
return NULL;
}
data->fragment_size = WSC_FRAGMENT_SIZE;
data->fragment_size = sm->fragment_size > 0 ? sm->fragment_size :
WSC_FRAGMENT_SIZE;
return data;
}