From patchwork Fri Jan 11 13:48:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 211370 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A5BC12C021D for ; Sat, 12 Jan 2013 02:45:00 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 3CA6A9C189; Fri, 11 Jan 2013 10:44:57 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D9ErbZe-6l3u; Fri, 11 Jan 2013 10:44:56 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 8CB129C17E; Fri, 11 Jan 2013 10:44:52 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 4E08D9C17E for ; Fri, 11 Jan 2013 10:44:51 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 49VFs0Sxlhve for ; Fri, 11 Jan 2013 10:44:47 -0500 (EST) Received: from mail-lb0-f201.google.com (mail-lb0-f201.google.com [209.85.217.201]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 66B459C178 for ; Fri, 11 Jan 2013 10:44:47 -0500 (EST) Received: by mail-lb0-f201.google.com with SMTP id m4so121739lbo.2 for ; Fri, 11 Jan 2013 07:44:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:date:subject:to:message-id:x-gm-message-state; bh=EQbHA7eD+FKqKadWj39PB0QLQowcT9MvrUV5hlZo63c=; b=KhhNbgKZo/LXEArE2pWicrxN8qPLGR06S0bZcKCk6jgXw+s5H6tgRTux81dt28Dky3 qWPiRRgJjwiDhlFgVtnaQqNp+DYfONtk6khRMelHh3OzCsyL8kNQ1H6yLZsNjWM/92gJ 2JQ4JYBG2GDfQ2upVnAvPIVXJ3gAY8QhGZkR31I1ESnzLmNTLEUPVtNkWg4qbpbzocTa z0ZI59u0mjJ9jjAgLTbwr08w32oUsA/0lGPEgQiaMZ1COs2zFcmtXMjTS2t6IEMGaKF1 V66tf+2f3ifPbp1N0OLLtqwfqfs/19DUjsnZVJAKzLNL4B713pnwFwF3hrh7qUqzclVL ap8A== X-Received: by 10.14.214.197 with SMTP id c45mr96221683eep.7.1357919085175; Fri, 11 Jan 2013 07:44:45 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id g9si2269644eeo.1.2013.01.11.07.44.45 (version=TLSv1 cipher=AES128-SHA bits=128/128); Fri, 11 Jan 2013 07:44:45 -0800 (PST) Received: from clearcreek.mtv.corp.google.com (clearcreek.mtv.corp.google.com [172.22.73.104]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id BFAA120004E for ; Fri, 11 Jan 2013 07:44:44 -0800 (PST) Received: by clearcreek.mtv.corp.google.com (Postfix, from userid 110058) id 0AFCE2002B5; Fri, 11 Jan 2013 07:44:43 -0800 (PST) From: Paul Stewart Date: Fri, 11 Jan 2013 05:48:33 -0800 Subject: [PATCH] wpa_supplicant: Add more DBus EAP status To: hostap@lists.shmoo.com Message-Id: <20130111154444.0AFCE2002B5@clearcreek.mtv.corp.google.com> X-Gm-Message-State: ALoCoQlcNuB2SD1D8UtJ4RZ+cnMYOqmB2U2BvmBX/I9MPuxYGsDtnTvVaejlHl6izCJDOrKMbD9S6y8M4qjDZ3GXHsx+HAlyc8D//PCJ3d/zg6DWtfcxAOfvKdtZET/sDA23fIbF/mEdLfBxrMWZXHhHa1WnTZyIiZk3RITzY1QXUyb9E7S4UAtIRKFTv1NkRk/tE2UDTTwrx4OZbKeQXTW+CVLW4FfIxA== X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Signal the start of EAP authentication as well as when additional credentials are required to complete. Signed-hostap: Paul Stewart --- src/eap_peer/eap.c | 1 + wpa_supplicant/wpas_glue.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/eap_peer/eap.c b/src/eap_peer/eap.c index a4c9b25..85c242a 100644 --- a/src/eap_peer/eap.c +++ b/src/eap_peer/eap.c @@ -891,6 +891,7 @@ static void eap_sm_processIdentity(struct eap_sm *sm, const struct wpabuf *req) wpa_msg(sm->msg_ctx, MSG_INFO, WPA_EVENT_EAP_STARTED "EAP authentication started"); + eap_notify_status(sm, "started", ""); pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_IDENTITY, req, &msg_len); diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c index 6f69ddb..4859774 100644 --- a/wpa_supplicant/wpas_glue.c +++ b/wpa_supplicant/wpas_glue.c @@ -662,6 +662,8 @@ static void wpa_supplicant_eap_param_needed(void *ctx, return; } + wpas_notify_eap_status(wpa_s, "eap parameter needed", field_name); + buflen = 100 + os_strlen(txt) + ssid->ssid_len; buf = os_malloc(buflen); if (buf == NULL)