Enable secured mode
authorKim Gibyoung <lastkgb.kim@samsung.com>
Tue, 23 Apr 2013 16:34:52 +0000 (01:34 +0900)
committerKim Gibyoung <lastkgb.kim@samsung.com>
Tue, 23 Apr 2013 16:34:52 +0000 (01:34 +0900)
Change-Id: Ie49d98ed81e28987b6608892469c94d7469c6862

packaging/mobileap-agent.spec
src/mobileap_agent.c

index f035af4..f4fc756 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mobileap-agent
 Summary:    Mobile AP daemon for setting tethering environments
-Version:    0.1.86
+Version:    0.1.87
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    Apache-2.0
index e643c17..609cfb0 100644 (file)
@@ -128,7 +128,7 @@ static int __execute_hostapd(const char *ssid, const char *security,
                }
 
                snprintf(sec_buf, HOSTAPD_CONF_LEN,
-                               "\nwpa=2\nrsn_pairwise=CCMP\nwpa_psk=%s",
+                               "wpa=2\nrsn_pairwise=CCMP\nwpa_psk=%s\nwps_state=2\neap_server=1",
                                psk);
        }
 
@@ -158,7 +158,7 @@ static int __execute_hostapd(const char *ssid, const char *security,
         if (pid == 0) {
                if (execl(HOSTAPD_BIN, HOSTAPD_BIN, "-e", HOSTAPD_ENTROPY_FILE,
                                        HOSTAPD_CONF_FILE,
-                                       "-f", HOSTAPD_DEBUG_FILE, "-d",
+                                       "-f", HOSTAPD_DEBUG_FILE, "-dd",
                                        (char *)NULL)) {
                        ERR("execl failed\n");
                }