From patchwork Mon Oct 31 18:22:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonny Karlsson X-Patchwork-Id: 122905 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 CA8A0B6F7E for ; Tue, 1 Nov 2011 05:23:17 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id AAB259C16D; Mon, 31 Oct 2011 14:23:13 -0400 (EDT) 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 oN-su35kzC9T; Mon, 31 Oct 2011 14:23:13 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E07169C16F; Mon, 31 Oct 2011 14:23:08 -0400 (EDT) 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 E95239C16F for ; Mon, 31 Oct 2011 14:23:06 -0400 (EDT) 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 Cv8MHoweASiK for ; Mon, 31 Oct 2011 14:23:01 -0400 (EDT) Received: from hipper.arcada.fi (hipper.arcada.fi [193.167.33.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id C2DBD9C16D for ; Mon, 31 Oct 2011 14:23:00 -0400 (EDT) Received: from owa.arcada.fi (casino.arcada.fi [193.167.33.205]) by hipper.arcada.fi (8.13.8/8.13.8) with ESMTP id p9VIMwK2001254 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for ; Mon, 31 Oct 2011 20:22:58 +0200 Received: from CASINO.ad.arcada.fi ([fe80::bd4d:ca16:9f29:2d95]) by casino.ad.arcada.fi ([fe80::bd4d:ca16:9f29:2d95%17]) with mapi id 14.01.0289.001; Mon, 31 Oct 2011 20:22:58 +0200 From: Jonny Karlsson To: "hostap@lists.shmoo.com" Subject: RE: HostAP Digest, Vol 102, Issue 86 Thread-Topic: HostAP Digest, Vol 102, Issue 86 Thread-Index: AQHMl+YzQUyjpRraMEq4QVSaJ6MeNpWWxG33 Date: Mon, 31 Oct 2011 18:22:56 +0000 Message-ID: References: In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 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 Sent from my Android phone using TouchDown (www.nitrodesk.com) -----Original Message----- From: hostap-request@lists.shmoo.com [hostap-request@lists.shmoo.com] Received: måndag, 31 okt 2011, 18:00 To: hostap@lists.shmoo.com [hostap@lists.shmoo.com] Subject: HostAP Digest, Vol 102, Issue 86 Send HostAP mailing list submissions to hostap@lists.shmoo.com To subscribe or unsubscribe via the World Wide Web, visit http://lists.shmoo.com/mailman/listinfo/hostap or, via email, send a message with subject or body 'help' to hostap-request@lists.shmoo.com You can reach the person managing the list at hostap-owner@lists.shmoo.com When replying, please edit your Subject line so it is more specific than "Re: Contents of HostAP digest..." Today's Topics: 1. [PATCH] If P2P device expires while GO nego is in progress, indicate GO Nego failure. (Jithu Jance) 2. about AP 00:00:00:00:00 in EAP-SIM (why) ---------------------------------------------------------------------- Message: 1 Date: Mon, 31 Oct 2011 06:33:06 -0700 From: "Jithu Jance" Subject: [PATCH] If P2P device expires while GO nego is in progress, indicate GO Nego failure. To: "hostap@lists.shmoo.com" Message-ID: <6C370B347C3FE8438C9692873287D2E119560C6AFF@SJEXCHCCR01.corp.ad.broadcom.com> Content-Type: text/plain; charset=us-ascii If P2P device expires while a GO negotiation is in progress, currently p2p->go_neg_peer is cleared without indicating GO Nego failure. This will result in pending group interfaces to be left over. This patch will indicate go nego failure and will remove any pending group interfaces. Signed-off-by: Jithu Jance --- src/p2p/p2p.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) -- 1.7.4.1 - Jithu Jance. ------------------------------ Message: 2 Date: Mon, 31 Oct 2011 22:19:21 +0800 (CST) From: why Subject: about AP 00:00:00:00:00 in EAP-SIM To: "hostap@lists.shmoo.com" Message-ID: <4e22eba1.1066a.1335a594a2f.Coremail.why1988seu@126.com> Content-Type: text/plain; charset="gbk" When I use -d option in the hostapd, the hlr_auc_gw even can't receive the IMSI massage, so I give up. Here is the hostapd's debug message(STA uses the Odyssey client) . authentication: STA=00:14:78:71:42:67 auth_alg=0 auth_transaction=1 status_code=0 wep=0 New STA wlan0: STA 00:14:78:71:42:67 IEEE 802.11: authentication OK (open system) wlan0: STA 00:14:78:71:42:67 MLME: MLME-AUTHENTICATE.indication(00:14:78:71:42:67, OPEN_SYSTEM) wlan0: STA 00:14:78:71:42:67 MLME: MLME-DELETEKEYS.request(00:14:78:71:42:67) authentication reply: STA=00:14:78:71:42:67 auth_alg=0 auth_transaction=2 resp=0 (IE len=0) mgmt::auth cb wlan0: STA 00:14:78:71:42:67 IEEE 802.11: authenticated mgmt::assoc_req association request: STA=00:14:78:71:42:67 capab_info=0x431 listen_interval=10 new AID 1 wlan0: STA 00:14:78:71:42:67 IEEE 802.11: association OK (aid 1) mgmt::assoc_resp cb wlan0: STA 00:14:78:71:42:67 IEEE 802.11: associated (aid 1) wlan0: STA 00:14:78:71:42:67 MLME: MLME-ASSOCIATE.indication(00:14:78:71:42:67) wlan0: STA 00:14:78:71:42:67 MLME: MLME-DELETEKEYS.request(00:14:78:71:42:67) wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x94e8998 key_idx=0 set_tx=1 seq_len=0 key_len=0 addr=00:14:78:71:42:67 wlan0: STA 00:14:78:71:42:67 WPA: event 1 notification wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x94e8998 key_idx=0 set_tx=1 seq_len=0 key_len=0 addr=00:14:78:71:42:67 wlan0: STA 00:14:78:71:42:67 IEEE 802.1X: start authentication EAP: Server state machine created IEEE 802.1X: 00:14:78:71:42:67 BE_AUTH entering state IDLE IEEE 802.1X: 00:14:78:71:42:67 CTRL_DIR entering state FORCE_BOTH wlan0: STA 00:14:78:71:42:67 WPA: start authentication WPA: 00:14:78:71:42:67 WPA_PTK entering state INITIALIZE wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x94e8998 key_idx=0 set_tx=1 seq_len=0 key_len=0 addr=00:14:78:71:42:67 WPA: 00:14:78:71:42:67 WPA_PTK_GROUP entering state IDLE WPA: 00:14:78:71:42:67 WPA_PTK entering state AUTHENTICATION WPA: 00:14:78:71:42:67 WPA_PTK entering state AUTHENTICATION2 IEEE 802.1X: 00:14:78:71:42:67 AUTH_PAE entering state DISCONNECTED wlan0: STA 00:14:78:71:42:67 IEEE 802.1X: unauthorizing port IEEE 802.1X: 00:14:78:71:42:67 AUTH_PAE entering state RESTART EAP: EAP entering state INITIALIZE CTRL-EVENT-EAP-STARTED 00:14:78:71:42:67 EAP: EAP entering state SELECT_ACTION EAP: getDecision: no identity known yet -> CONTINUE EAP: EAP entering state PROPOSE_METHOD EAP: getNextMethod: vendor 0 type 1 CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1 EAP: EAP entering state METHOD_REQUEST EAP: building EAP-Request: Identifier 103 EAP: EAP entering state SEND_REQUEST EAP: EAP entering state IDLE EAP: retransmit timeout 3 seconds (from dynamic back off; retransCount=0) IEEE 802.1X: 00:14:78:71:42:67 AUTH_PAE entering state CONNECTING IEEE 802.1X: 00:14:78:71:42:67 AUTH_PAE entering state AUTHENTICATING IEEE 802.1X: 00:14:78:71:42:67 BE_AUTH entering state REQUEST wlan0: STA 00:14:78:71:42:67 IEEE 802.1X: Sending EAP Packet (identifier 103) nl80211: Event message available nl80211: Ignored unknown event (cmd=19) IEEE 802.1X: 00:14:78:71:42:67 TX status - version=1 type=0 length=5 - ack=1 mgmt::proberesp cb mgmt::proberesp cb IEEE 802.1X: 00:14:78:71:42:67 - (EAP) retransWhile --> 0 EAP: EAP entering state RETRANSMIT EAP: EAP entering state IDLE EAP: retransmit timeout 6 seconds (from dynamic back off; retransCount=1) IEEE 802.1X: 00:14:78:71:42:67 BE_AUTH entering state REQUEST wlan0: STA 00:14:78:71:42:67 IEEE 802.1X: Sending EAP Packet (identifier 103) IEEE 802.1X: 00:14:78:71:42:67 TX status - version=1 type=0 length=5 - ack=1 mgmt::proberesp cb mgmt::proberesp cb mgmt::proberesp cb mgmt::deauth -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.shmoo.com/pipermail/hostap/attachments/20111031/0a24ed26/attachment.html ------------------------------ diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 404b2cd..5a7aee2 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -625,8 +625,12 @@ static void p2p_device_free(struct p2p_data *p2p, struct p2p_device *dev) { int i; - if (p2p->go_neg_peer == dev) + if (p2p->go_neg_peer == dev) { + /* If GO Negotiation is in progress, report that + * it has failed. */ + p2p_go_neg_failed(p2p, dev, -1); p2p->go_neg_peer = NULL; + } if (p2p->invite_peer == dev) p2p->invite_peer = NULL; if (p2p->sd_peer == dev)