Removed registrar pointer from wps_config and wps_data
wps_context::registrar can be used as the only location for this pointer.
This commit is contained in:
parent
5a8c6d3353
commit
41c00105f2
6 changed files with 24 additions and 25 deletions
|
@ -90,6 +90,7 @@ static void * eap_wsc_init(struct eap_sm *sm)
|
|||
|
||||
os_memset(&cfg, 0, sizeof(cfg));
|
||||
cfg.wps = sm->wps;
|
||||
cfg.registrar = registrar;
|
||||
if (registrar) {
|
||||
if (sm->wps == NULL || sm->wps->registrar == NULL) {
|
||||
wpa_printf(MSG_INFO, "EAP-WSC: WPS Registrar not "
|
||||
|
@ -97,7 +98,6 @@ static void * eap_wsc_init(struct eap_sm *sm)
|
|||
os_free(data);
|
||||
return NULL;
|
||||
}
|
||||
cfg.registrar = sm->wps->registrar;
|
||||
} else {
|
||||
if (sm->user == NULL || sm->user->password == NULL) {
|
||||
wpa_printf(MSG_INFO, "EAP-WSC: No AP PIN (password) "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue