3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

plugins: updated sim_hardcoded with simauth changes

This commit is contained in:
James Prestwood 2017-12-11 15:55:47 -08:00 committed by Denis Kenzior
parent 36804b1b5c
commit 3eb0083170

View File

@ -367,14 +367,21 @@ end:
return -EINVAL; return -EINVAL;
} }
sim->auth = iwd_sim_auth_create(sim->sim_supported, sim->aka_supported, sim->auth = iwd_sim_auth_create(&hardcoded_sim_driver);
sim->identity, &hardcoded_sim_driver, NULL);
iwd_sim_auth_set_nai(sim->auth, sim->identity);
iwd_sim_auth_set_capabilities(sim->auth, sim->sim_supported,
sim->aka_supported);
iwd_sim_auth_register(sim->auth);
return 0; return 0;
} }
static void sim_hardcoded_exit(void) static void sim_hardcoded_exit(void)
{ {
iwd_sim_auth_remove(sim->auth);
if (sim) if (sim)
l_free(sim->identity); l_free(sim->identity);