eapol_test: Initialize BSS lists
This is needed to avoid issues with control interface commands that could request BSS list during an eapol_test run. wpa_cli tries to update its internal BSS list and that could trigger eapol_test crashes without this. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
bceb843108
commit
7e8bc7d6fb
1 changed files with 2 additions and 0 deletions
|
@ -1285,6 +1285,8 @@ int main(int argc, char *argv[])
|
|||
os_memset(&wpa_s, 0, sizeof(wpa_s));
|
||||
wpa_s.global = &global;
|
||||
eapol_test.wpa_s = &wpa_s;
|
||||
dl_list_init(&wpa_s.bss);
|
||||
dl_list_init(&wpa_s.bss_id);
|
||||
wpa_s.conf = wpa_config_read(conf, NULL);
|
||||
if (wpa_s.conf == NULL) {
|
||||
printf("Failed to parse configuration file '%s'.\n", conf);
|
||||
|
|
Loading…
Reference in a new issue