th->channel = 6;
th->mode_type = TETHERING_WIFI_MODE_TYPE_G;
th->wifi_max_connected = TETHERING_WIFI_MAX_STA;
+ th->change_mac = false;
if (__generate_initial_passphrase(th->passphrase,
sizeof(th->passphrase)) == 0) {
_retvm_if(tethering == NULL, TETHERING_ERROR_INVALID_PARAMETER,
"parameter(tethering) is NULL\n");
+ GVariant *result = NULL;
__tethering_h *th = (__tethering_h *)tethering;
DBG("Tethering Handle : 0x%X\n", th);
+
+ if (th->change_mac) {
+ result = g_dbus_proxy_call_sync(th->client_bus_proxy, "reset_mac", NULL,
+ G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
+ g_variant_unref(result);
+ }
+
__disconnect_signals(tethering);
if (th->ssid)
g_variant_unref(parameters);
+ th->change_mac = true;
+
return TETHERING_ERROR_NONE;
}