Description: Additional parameter was added to the
dbus method "create_mesh_network" in the commit
48d7d1c3. This resulted in the dbus call failing.
Add this additional parameter while calling the
dbus method.
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Ie9feb592fd986d963e802c85e9e1f3d2bfd6dc46
error_e ret = ERROR_NONE;
Wmesh w;
- ret = w.CreateMeshNetwork(mesh_id, 1, 2);
+ ret = w.CreateMeshNetwork(mesh_id, 1, 2, 1);
EXPECT_EQ(ERROR_NONE, ret);
}
return ERROR_NONE;
}
-error_e Wmesh::CreateMeshNetwork(char *mesh_id, int channel, int security)
+error_e Wmesh::CreateMeshNetwork(char *mesh_id, int channel, int security,
+ int pmf)
{
GVariant *message = NULL;
error_e error = ERROR_NONE;
WIFI_MESH_MGR_PATH,
WIFI_MESH_MGR_INTERFACE,
WIFI_MESH_MGR_METHOD_CREATE_MESH_NETWORK,
- g_variant_new("(sii)", mesh_id, channel, security),
+ g_variant_new("(siii)", mesh_id, channel, security, pmf),
&error);
if (message == NULL) {
error_e EnableSoftap(void);
error_e DisableSoftap(void);
error_e IsSoftapEnabled(void);
- error_e CreateMeshNetwork(char *mesh_id, int channel, int security);
+ error_e CreateMeshNetwork(char *mesh_id, int channel, int security,
+ int pmf);
error_e ConnectMeshNetwork(char *mesh_id, int channel, int security,
char *passphrase);
error_e DisconnectMeshNetwork(char *mesh_id, int channel, int security);