default_connection_s *connection = (default_connection_s *)data;
stc_s *stc = stc_get_manager();
- if (app_value->classid == STC_TOTAL_DATACALL_CLASSID ||
- app_value->classid == STC_TOTAL_WIFI_CLASSID ||
- app_value->classid == STC_TOTAL_BLUETOOTH_CLASSID)
+ if ((app_value->classid == STC_TOTAL_DATACALL_CLASSID &&
+ connection->type != STC_IFACE_DATACALL) ||
+ (app_value->classid == STC_TOTAL_WIFI_CLASSID &&
+ connection->type != STC_IFACE_WIFI) ||
+ (app_value->classid == STC_TOTAL_BLUETOOTH_CLASSID &&
+ connection->type != STC_IFACE_BLUETOOTH))
return FALSE;
if (stc && connection && connection->ifname) {