Patchwork HostAP Digest, Vol 102, Issue 86

login
register
mail settings
Submitter Jonny Karlsson
Date Oct. 31, 2011, 6:22 p.m.
Message ID <B2283BFA0838EE4ABD171CD8C9EE914B31F771C1@casino.ad.arcada.fi>
Download mbox | patch
Permalink /patch/122905/
State Not Applicable
Headers show

Comments

Jonny Karlsson - Oct. 31, 2011, 6:22 p.m.
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" <jithu@broadcom.com>
Subject: [PATCH] If P2P device expires while GO nego is in progress,
        indicate GO Nego failure.
To: "hostap@lists.shmoo.com" <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 <jithu@broadcom.com>

---
 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 <why1988seu@126.com>
Subject: about AP 00:00:00:00:00 in EAP-SIM
To: "hostap@lists.shmoo.com" <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

------------------------------

Patch

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)