Name: mobileap-agent
Summary: Mobile AP daemon for setting tethering environments
-Version: 1.1.3
+Version: 1.1.4
Release: 1
Group: System/Network
License: Apache-2.0
if (mobileap_state == VCONFKEY_MOBILE_HOTSPOT_MODE_WIFI_AP) {
DBG("Start SoftAP State recovery");
ret = softap_start_recovery();
- if (ret < 0) {
+ if (ret == false) {
ERR("softap is not recovered");
return 0;
}
}
#ifdef TIZEN_FEATURE_ENABLE_IPV6
- if (address_type == MOBILE_AP_ADDRESS_TYPE_IPV6) {
- if (!_mobileap_set_ipv6_state(MOBILE_AP_STATE_BT)) {
- ret = MOBILE_AP_ERROR_RESOURCE;
- __deinit_bt();
- goto DONE;
- }
- }
+ if (address_type == MOBILE_AP_ADDRESS_TYPE_IPV6)
+ _mobileap_set_ipv6_state(MOBILE_AP_STATE_BT);
+
#endif
if (__is_bt_adapter_on() == FALSE) {
//LCOV_EXCL_STOP
#endif
-static int __terminate_hostapd()
+static void __terminate_hostapd()
{
DBG("+\n");
DBG("terminatin band: %d ", wifi_band);
if (hostapd_pid[wifi_band] == 0) {
ERR("There is no hostapd\n"); //LCOV_EXCL_LINE
- return MOBILE_AP_ERROR_NONE;
+ return;
}
kill(hostapd_pid[wifi_band], SIGTERM);
ret = unlink(hostapd_get_conf_file());
if (ret < 0)
ERR("unlink is failed : %s\n", strerror_r(errno, buf, sizeof(buf))); //LCOV_EXCL_LINE
-
- return MOBILE_AP_ERROR_NONE;
}
/*
if (ret_status != MOBILE_AP_ERROR_NONE)
ERR("hostapd termination is failed\n"); //LCOV_EXCL_LINE
- ret_status = __terminate_hostapd();
- if (ret_status != MOBILE_AP_ERROR_NONE)
- ERR("hostapd termination is failed\n"); //LCOV_EXCL_LINE
+ __terminate_hostapd();
break;
default:
#endif
_deinit_tethering(address_type);
-
- if (_remove_station_info_all(MOBILE_AP_TYPE_USB) != MOBILE_AP_ERROR_NONE)
- ERR("_remove_station_info_all is failed. Ignore it\n"); //LCOV_EXCL_LINE
+ _remove_station_info_all(MOBILE_AP_TYPE_USB);
/* Clear DBus Signal Handler for USB Client State */
if (conn) {
_flush_ip_address(src_if);
_deinit_timeout_cb(type);
- if (_remove_station_info_all(type) != MOBILE_AP_ERROR_NONE)
- ERR("_remove_station_info_all is failed. Ignore it.\n"); //LCOV_EXCL_LINE
-
+ _remove_station_info_all(type);
ret = _mh_core_disable_softap(src_if);
if (ret != MOBILE_AP_ERROR_NONE) {
ERR("_mh_core_disable_softap is failed : %d\n", ret); //LCOV_EXCL_LINE
_del_interface_routing(src_if, IP_ADDRESS_SOFTAP);
_flush_ip_address(src_if);
_deinit_timeout_cb(type);
- if (_remove_station_info_all(type) != MOBILE_AP_ERROR_NONE)
- ERR("_remove_station_info_all is failed. Ignore it.\n"); //LCOV_EXCL_LINE
+ _remove_station_info_all(type);
ret = _mh_core_disable_softap(src_if);
if (ret != MOBILE_AP_ERROR_NONE) {