- Changed not to remove configuration file on termination.
static int __terminate_hostapd()
{
int ret;
- char buf[MAX_BUF_SIZE] = {0, };
if (hostapd_pid == 0) {
MESH_LOGE("There is no hostapd");
waitpid(hostapd_pid, NULL, 0);
hostapd_pid = 0;
- ret = unlink(HOSTAPD_MESH_CONF_FILE);
- if (ret < 0) {
- strerror_r(errno, buf, sizeof(buf));
- MESH_LOGE("unlink is failed : %s", buf);
- } else {
- MESH_LOGD("Successfully removed");
- }
-
return MESHD_ERROR_NONE;
}