Merge "Removed cap for mac override and change the label for connman dir" into tizen accepted/tizen/common/20160706.142111 accepted/tizen/ivi/20160706.082205 accepted/tizen/mobile/20160706.082128 accepted/tizen/tv/20160706.082111 accepted/tizen/wearable/20160706.082135 submit/tizen/20160706.014843
authorcheoleun moon <chleun.moon@samsung.com>
Wed, 6 Jul 2016 01:43:14 +0000 (18:43 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 6 Jul 2016 01:43:14 +0000 (18:43 -0700)
plugins/wifi.c
src/connman.h
src/service.c

index cc5f242..4050bce 100755 (executable)
@@ -2509,11 +2509,6 @@ static bool handle_4way_handshake_failure(GSupplicantInterface *interface,
        wifi->retries = 0;
        connman_network_set_error(network, CONNMAN_NETWORK_ERROR_INVALID_KEY);
 
-#if defined TIZEN_EXT
-       /* not retry autoconnect in case of invalid-key error */
-       __connman_service_set_autoconnect(service, false);
-#endif
-
        return false;
 }
 
index e3296a7..56f9dd9 100755 (executable)
@@ -699,8 +699,6 @@ bool __connman_service_wps_enabled(struct connman_service *service);
 #if defined TIZEN_EXT
 void __connman_service_set_storage_reload(struct connman_service *service,
                                                bool storage_reload);
-void __connman_service_set_autoconnect(struct connman_service *service,
-                                               bool autoconnect);
 #endif
 int __connman_service_set_favorite(struct connman_service *service,
                                                bool favorite);
index 69fefe7..f77f033 100755 (executable)
@@ -5930,21 +5930,6 @@ void __connman_service_set_search_domains(struct connman_service *service,
        searchdomain_add_all(service);
 }
 
-#if defined TIZEN_EXT
-void __connman_service_set_autoconnect(struct connman_service *service,
-                                               bool autoconnect)
-{
-       if (service == NULL)
-               return;
-
-       if (service->autoconnect != autoconnect) {
-               DBG("updated autoconnect flag (%d)", autoconnect);
-               service->autoconnect = autoconnect;
-               service_save(service);
-       }
-}
-#endif
-
 static void service_complete(struct connman_service *service)
 {
        reply_pending(service, EIO);
@@ -6647,6 +6632,11 @@ int __connman_service_indicate_error(struct connman_service *service,
                                service->error == CONNMAN_SERVICE_ERROR_CONNECT_FAILED)
                        __connman_service_disconnect_default(service);
 
+               if (service->type == CONNMAN_SERVICE_TYPE_WIFI &&
+                               service->error == CONNMAN_SERVICE_ERROR_INVALID_KEY) {
+                       g_free(service->passphrase);
+                       service->passphrase = NULL;
+               }
 #endif
 
        __connman_service_ipconfig_indicate_state(service,