int wlan_manager_request_disconnection(void* data)
{
	__COMMON_FUNC_ENTER__;
	INFO_LOG(UG_NAME_REQ, "request disconnection");

	if ((wlan_manager_disconnect(data)) != WLAN_MANAGER_ERR_NONE) {
		return WLAN_MANAGER_ERR_UNKNOWN;
	}

	return WLAN_MANAGER_ERR_NONE;
}
Ejemplo n.º 2
0
static void __wps_pbc_popup_cancel_connecting(void *data, Evas_Object *obj,
		void *event_info)
{
	if (devpkr_app_state->passpopup == NULL) {
		return;
	}

	wifi_ap_h ap = passwd_popup_get_ap(devpkr_app_state->passpopup);

	int ret = wlan_manager_disconnect(ap);
	if (ret != WLAN_MANAGER_ERR_NONE) {
		ERROR_LOG(SP_NAME_ERR, "Failed WPS PBC cancellation [0x%x]", ap);
	}

	passwd_popup_free(devpkr_app_state->passpopup);
	devpkr_app_state->passpopup = NULL;
}