And remove therefore the dependencie on connman_network_set_string().
*/
struct connman_network *__iwmx_cm_network_available(
struct wmxsdk *wmxsdk, const char *station_name,
- const char *station_type,
const void *sdk_nspname, size_t sdk_nspname_size,
int strength)
{
DBG("updating network %s nw %p\n", station_name, nw);
connman_network_set_available(nw, TRUE);
connman_network_set_strength(nw, strength);
- connman_network_set_string(nw, "WiMAX Network Type", station_type);
error_add:
return nw;
}
*/
struct connman_network *iwmx_cm_network_available(
struct wmxsdk *wmxsdk, const char *station_name,
- const char *station_type,
const void *sdk_nspname, size_t sdk_nspname_size,
int strength)
{
struct connman_network *nw;
g_static_mutex_lock(&wmxsdk->network_mutex);
- nw = __iwmx_cm_network_available(wmxsdk, station_name, station_type,
+ nw = __iwmx_cm_network_available(wmxsdk, station_name,
sdk_nspname, sdk_nspname_size,
strength);
g_static_mutex_unlock(&wmxsdk->network_mutex);
struct connman_network *__iwmx_cm_network_available(
struct wmxsdk *wmxsdk, const char *station_name,
- const char *station_type,
const void *sdk_nspname, size_t sdk_nspname_size,
int strength);
struct connman_network *iwmx_cm_network_available(
struct wmxsdk *wmxsdk, const char *station_name,
- const char *station_type,
const void *sdk_nspname, size_t sdk_nspname_size,
int strength);
strcpy((char *) nsp_info.NSPName, "unknown");
nw = iwmx_cm_network_available(
wmxsdk, "unknown",
- iwmx_sdk_network_type_name(WIMAX_API_UNKNOWN),
nsp_info.NSPName, strlen((char *) nsp_info.NSPName) + 1,
cinr_to_percentage(nsp_info.CINR - 10));
} else {
nw = iwmx_cm_network_available(
wmxsdk, (char *) nsp_info.NSPName,
- iwmx_sdk_network_type_name(nsp_info.networkType),
nsp_info.NSPName, strlen((char *) nsp_info.NSPName) + 1,
cinr_to_percentage(nsp_info.CINR - 10));
}
__iwmx_cm_network_available(
wmxsdk, station_name,
- iwmx_sdk_network_type_name(nsp_info->networkType),
nsp_info->NSPName,
strlen((char *) nsp_info->NSPName) + 1,
strength);