security = ((1 == ret) ? MESH_SECURITY_SAE : MESH_SECURITY_NONE);
}
- mesh_network_new_with(&net, meshid, NULL, _mesh_channel, 0, 0, security, NULL);
+ mesh_network_new_with(&net, meshid, NULL, _mesh_channel, 0, 0,
+ security, security == MESH_SECURITY_SAE ? mesh_passphrase : NULL);
ret = mesh_create_mesh_network(mesh, net);
mesh_network_destroy(net);
if (MESH_ERROR_NONE != ret) {
{ "1", "Mesh ID", NULL, NULL, meshid },
{ "2", "Channel", NULL, NULL, mesh_channel },
{ "3", "Security (0=None,1=SAE)", NULL, NULL, mesh_security },
- { "4", "Run", NULL, run_create_network, NULL },
+ { "4", "Passphrase", NULL, NULL, mesh_passphrase },
+ { "5", "Run", NULL, run_create_network, NULL },
{ NULL, NULL, },
};