CONNMAN_TECHNOLOGY_INTERFACE, method, NULL, &Error);
if (message == NULL) {
- WIFI_LOG(WIFI_ERROR, "Failed to get scan state\n");
+ WIFI_LOG(WIFI_ERROR, "Failed to get scan state\n"); //LCOV_EXCL_LINE
__NETWORK_FUNC_EXIT__;
return Error;
}
return Error;
}
+//LCOV_EXCL_START
int _net_dbus_set_bgscan_mode(net_wifi_background_scan_mode_e mode)
{
__NETWORK_FUNC_ENTER__;
__NETWORK_FUNC_EXIT__;
return Error;
}
+//LCOV_EXCL_STOP
int _net_dbus_get_technology_state(network_tech_state_info_s* tech_state)
{
return Error;
}
+//LCOV_EXCL_START
int _net_dbus_set_agent_fields_and_connect(const char *ssid,
const char *passphrase, const char *profilename)
{
return Error;
}
-//LCOV_EXCL_START
int _net_dbus_get_wps_pin(char **wps_pin)
{
__NETWORK_FUNC_ENTER__;
return Error;
}
+//LCOV_EXCL_START
int _net_dbus_set_profile_ipv4(net_profile_info_s* prof_info, char* profile_name)
{
__NETWORK_FUNC_ENTER__;
builder = g_variant_builder_new(G_VARIANT_TYPE("a{sv}"));
- //LCOV_EXCL_START
if (profile_net_info->IpConfigType == NET_IP_CONFIG_TYPE_DYNAMIC ||
profile_net_info->IpConfigType == NET_IP_CONFIG_TYPE_AUTO_IP) {
__NETWORK_FUNC_EXIT__;
return NET_ERR_INVALID_PARAM;
}
- //LCOV_EXCL_STOP
params = g_variant_new("(sv)",
prop_ipv4_configuration, g_variant_builder_end(builder));
return Error;
}
-//LCOV_EXCL_START
int _net_dbus_set_profile_ipv6(net_profile_info_s* prof_info, char* profile_name)
{
__NETWORK_FUNC_ENTER__;
__thread network_info_s NetworkInfo = { 0, };
extern __thread network_request_table_s request_table[NETWORK_REQUEST_TYPE_MAX];
+//LCOV_EXCL_START
static int __net_check_get_privilege()
{
__NETWORK_FUNC_ENTER__;
__NETWORK_FUNC_EXIT__;
return Error;
}
+//LCOV_EXCL_STOP
static int __net_get_prefix_len(const char *netmask)
{
net_dev_info_s *net_info = NULL;
if (ProfInfo == NULL) {
- WIFI_LOG(WIFI_ERROR, "Invalid Parameter\n");
- return NET_ERR_INVALID_PARAM;
+ WIFI_LOG(WIFI_ERROR, "Invalid Parameter\n"); //LCOV_EXCL_LINE
+ return NET_ERR_INVALID_PARAM; //LCOV_EXCL_LINE
}
memset(ProfInfo, 0, sizeof(net_profile_info_s));
net_err_e Error = NET_ERR_NONE;
if (NetworkInfo.ref_count < 1) {
- WIFI_LOG(WIFI_ERROR, "Application is not registered");
+ WIFI_LOG(WIFI_ERROR, "Application is not registered"); //LCOV_EXCL_LINE
__NETWORK_FUNC_EXIT__;
return NET_ERR_APP_NOT_REGISTERED;
}
}
if (request_table[NETWORK_REQUEST_TYPE_SCAN].flag == TRUE) {
- WIFI_LOG(WIFI_ERROR, "Request in progress");
- *scanstate = 1;
+ WIFI_LOG(WIFI_ERROR, "Request in progress"); //LCOV_EXCL_LINE
+ *scanstate = 1; //LCOV_EXCL_LINE
__NETWORK_FUNC_EXIT__;
- return NET_ERR_NONE;
+ return NET_ERR_NONE; //LCOV_EXCL_LINE
}
Error = _net_dbus_get_scan_state(scanstate);
if (Error != NET_ERR_NONE) {
- WIFI_LOG(WIFI_ERROR, "Failed to get scan state. Error [%s]",
+ WIFI_LOG(WIFI_ERROR, "Failed to get scan state. Error [%s]", //LCOV_EXCL_LINE
_net_print_error(Error));
__NETWORK_FUNC_EXIT__;
- return Error;
+ return Error; //LCOV_EXCL_LINE
}
__NETWORK_FUNC_EXIT__;
__NETWORK_FUNC_EXIT__;
return Error;
}
-//LCOV_EXCL_STOP
int net_check_get_privilege()
{
return Error;
}
-//LCOV_EXCL_START
int net_wifi_enroll_wps_without_ssid(net_wifi_wps_info_s *wps_info)
{
__NETWORK_FUNC_ENTER__;
if (NetworkInfo.ref_count > 0)
return TRUE;
- return FALSE;
+ return FALSE; //LCOV_EXCL_LINE
}
int net_open_connection(const char *profile_name)
}
if (_net_dbus_is_pending_call_used() == TRUE) {
- is_connecting = __net_is_connecting(profile_name);
- if (is_connecting == FALSE) {
+ is_connecting = __net_is_connecting(profile_name); //LCOV_EXCL_LINE
+ if (is_connecting == FALSE) { //LCOV_EXCL_LINE
WIFI_LOG(WIFI_ERROR, "pending call in progress"); //LCOV_EXCL_LINE
__NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE
}
if (is_connecting == TRUE)
- __net_abort_open_connection(profile_name);
+ __net_abort_open_connection(profile_name); //LCOV_EXCL_LINE
__NETWORK_FUNC_EXIT__;
return NET_ERR_NONE;
__NETWORK_FUNC_EXIT__;
return Error;
}
-//LCOV_EXCL_STOP
int net_wifi_set_autoscan(gboolean autoscan)
{
__NETWORK_FUNC_EXIT__;
return Error;
}
+
+//LCOV_EXCL_STOP
}
}
}
-//LCOV_EXCL_STOP
+
static void __tdls_discovered_cb(net_event_info_s *event_cb)
{
GSList *list;
}
}
}
+//LCOV_EXCL_STOP
static void _wifi_evt_cb(net_event_info_s *event_cb, void *user_data)
{
rv = net_register_client_ext((net_event_cb)_wifi_evt_cb, NULL);
if (rv != NET_ERR_NONE && rv != NET_ERR_APP_ALREADY_REGISTERED) {
- WIFI_LOG(WIFI_ERROR, "Failed to register client [%d]", rv);
- return rv;
+ WIFI_LOG(WIFI_ERROR, "Failed to register client [%d]", rv); //LCOV_EXCL_LINE
+ return rv; //LCOV_EXCL_LINE
}
return NET_ERR_NONE;
if (*wifi != NULL)
WIFI_LOG(WIFI_INFO, "New handle create[%p]", *wifi);
else {
- WIFI_LOG(WIFI_ERROR, "Failed to create wifi handle");
+ WIFI_LOG(WIFI_ERROR, "Failed to create wifi handle"); //LCOV_EXCL_LINE
return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
break;
case WLAN_SEC_MODE_IEEE8021X:
default:
- WIFI_LOG(WIFI_INFO, "Invalid security type");
- return WIFI_MANAGER_ERROR_OPERATION_FAILED;
+ WIFI_LOG(WIFI_INFO, "Invalid security type"); //LCOV_EXCL_LINE
+ return WIFI_MANAGER_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
g_strlcpy(profile_info->essid, essid, NET_WLAN_ESSID_LEN+1);
return WIFI_MANAGER_ERROR_NONE;
}
+//LCOV_EXCL_START
void _wifi_rssi_level_changed_cb(keynode_t *node, void *user_data)
{
GSList *list;
return WIFI_MANAGER_ERROR_NONE;
}
+//LCOV_EXCL_STOP
bool _wifi_check_config_validity(wifi_manager_config_h config_h)
{
return WIFI_MANAGER_ERROR_NONE;
}
-//LCOV_EXCL_STOP
int _wifi_check_get_privilege()
{
return WIFI_MANAGER_ERROR_NONE;
}
+//LCOV_EXCL_STOP
bool __check_feature_supported(const char *key, wifi_supported_feature_e feature)
{
return profile;
}
+//LCOV_EXCL_START
int _wifi_set_autoscan(bool autoscan)
{
int rv = 0;
return WIFI_MANAGER_ERROR_NONE;
}
+//LCOV_EXCL_STOP
return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- if (callback == NULL) {
- WIFI_LOG(WIFI_ERROR, "[App<--TizenMW] Wrong Parameter Passed\n");
- return WIFI_MANAGER_ERROR_INVALID_PARAMETER;
+ if (callback == NULL) { //LCOV_EXCL_LINE
+ WIFI_LOG(WIFI_ERROR, "[App<--TizenMW] Wrong Parameter Passed\n"); //LCOV_EXCL_LINE
+ return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
return _wifi_connect_with_wps_pbc_without_ssid(wifi, callback, user_data);
return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- if (callback == NULL) {
- WIFI_LOG(WIFI_ERROR, "[App<--TizenMW] Wrong Parameter Passed\n");
- return WIFI_MANAGER_ERROR_INVALID_PARAMETER;
+ if (callback == NULL) { //LCOV_EXCL_LINE
+ WIFI_LOG(WIFI_ERROR, "[App<--TizenMW] Wrong Parameter Passed\n"); //LCOV_EXCL_LINE
+ return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
if ((NULL == pin) || ((strlen(pin) != 4) &&
return rv;
}
+//LCOV_EXCL_START
EXPORT_API int wifi_manager_set_autoscan(wifi_manager_h wifi, bool autoscan)
{
CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
return _wifi_get_autoscanmode(mode);
}
+//LCOV_EXCL_STOP
* wifi tunneled direct link setup
*/
+//LCOV_EXCL_START
int _wifi_set_tdls_discovered_cb(wifi_manager_h wifi, void *callback, void *user_data)
{
wifi_manager_handle_s *local_handle = (wifi_manager_handle_s *)wifi;
return WIFI_MANAGER_ERROR_NONE;
}
-//LCOV_EXCL_START
EXPORT_API int wifi_manager_tdls_set_discovered_cb(wifi_manager_h wifi,
wifi_manager_tdls_discovered_cb callback, void *user_data)
{