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;
}
#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);
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);
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,