Removed to set autoconnect when 4way handshake failed
Release passphrase of service when indicate error occurred for invalid
key
Change-Id: Id748ddcd21ad896f0d8e91ce4711a4c9c0df6d96
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Name: connman
Version: 1.29
Name: connman
Version: 1.29
License: GPL-2.0+
Summary: Connection Manager
Url: http://connman.net
License: GPL-2.0+
Summary: Connection Manager
Url: http://connman.net
wifi->retries = 0;
connman_network_set_error(network, CONNMAN_NETWORK_ERROR_INVALID_KEY);
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
-
#if defined TIZEN_EXT
void __connman_service_set_storage_reload(struct connman_service *service,
bool storage_reload);
#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);
#endif
int __connman_service_set_favorite(struct connman_service *service,
bool favorite);
searchdomain_add_all(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);
static void service_complete(struct connman_service *service)
{
reply_pending(service, EIO);
service->error == CONNMAN_SERVICE_ERROR_CONNECT_FAILED)
__connman_service_disconnect_default(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,
#endif
__connman_service_ipconfig_indicate_state(service,