Change hostapd terminate logic
authorJiwan Kim <ji-wan.kim@samsung.com>
Mon, 20 Mar 2017 00:26:10 +0000 (09:26 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 17 Jul 2017 02:35:36 +0000 (11:35 +0900)
- Changed not to remove configuration file on termination.

src/mesh-softap.c

index 8bd530f..920d45f 100644 (file)
@@ -256,7 +256,6 @@ static int __close_hostapd_intf(int *fd)
 static int __terminate_hostapd()
 {
        int ret;
-       char buf[MAX_BUF_SIZE] = {0, };
 
        if (hostapd_pid == 0) {
                MESH_LOGE("There is no hostapd");
@@ -272,14 +271,6 @@ static int __terminate_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;
 }