char input_str[100] = {0,};
_D("ipaddress =%s", info->staticInfo->ipAddress);
-
if (info->staticInfo->ipAddress != NULL) {
rv = connection_profile_set_ip_address(profile,
address_family,
if (rv != CONNECTION_ERROR_NONE)
return -1;
}
-#if 0
+
_D("netmask =%s", info->staticInfo->netmask);
if (info->staticInfo->netmask != NULL) {
rv = connection_profile_set_subnet_mask(profile,
_D("DNS 2 =%s", info->staticInfo->secondaryDnsServer);
}
}
-#endif
return 1;
}
if (info == NULL) {
return SA_ERROR_INVALID_PARAMETER;
+ } else {
+ _D("----------- wifi info -----------");
+ _D("info|wifi|enabled(%d)", info->wifi->enabled);
+ _D("info|wifi|dhcpEnabled(%d)", info->wifi->dhcpEnabled);
+ _D("info|wifi|ssid(%s)", info->wifi->ssid);
+ _D("info|wifi|password(%s)", info->wifi->password);
+ _D("info|wifi|staticInfo|ipAddress(%s)", info->wifi->staticInfo->ipAddress);
+ _D("info|wifi|staticInfo|netmask(%s)", info->wifi->staticInfo->netmask);
+ _D("info|wifi|staticInfo|defaultGateway(%s)", info->wifi->staticInfo->defaultGateway);
+ _D("info|wifi|staticInfo|primaryDnsServer(%s)", info->wifi->staticInfo->primaryDnsServer);
+ _D("info|wifi|staticInfo|secondaryDnsServer(%s)", info->wifi->staticInfo->secondaryDnsServer);
+ _D("----------- ethernet info -----------");
+ _D("info|eth|enabled(%d)", info->eth->enabled);
+ _D("info|eth|dhcpEnabled(%d)", info->eth->dhcpEnabled);
+ _D("info|eth|staticInfo|ipAddress(%s)", info->eth->staticInfo->ipAddress);
+ _D("info|eth|staticInfo|netmask(%s)", info->eth->staticInfo->netmask);
+ _D("info|eth|staticInfo|defaultGateway(%s)", info->eth->staticInfo->defaultGateway);
+ _D("info|eth|staticInfo|primaryDnsServer(%s)", info->eth->staticInfo->primaryDnsServer);
+ _D("info|eth|staticInfo|secondaryDnsServer(%s)", info->eth->staticInfo->secondaryDnsServer);
}
if (info->eth != NULL) {
ret = __network_connect(network);
// need to delay to sync with setting...
- sleep(2);
+ sleep(5);
ret = __network_get_state(&conn_state, &conn_type);
if (ret == SA_ERROR_NONE) {
_D("Device Network : T[%s] S[%s]", __print_network_type(conn_type), __print_connection_state(conn_state));