As requested here is a log of a case of it not connecting to a network after a connection is established. In fact this is trying to connect to the very same network that it was connected to just before. Sorry couldn't get all the console msgs but you can see that the connection is authenticated.
<br><br>Please note: I've added the time to the console msgs, and yes I see that sometimes it get written twice, not sure why at this moment, but that is not my concern just now.<br><br><br>Steps:<br><ol><li> wpa_supplicant loads a config file with not ap_scan var and valid network variable settings for a network called FeatherSecure.
<br><br>
</li><li> through wpa_cli I send a ap_scan=2 command. (because it is hidden).<br>
<br>
</li><li>through wpa_cli I send a scan command.<br>
<br></li><li> through wpa_cli I send select_network "FeatherSecure" command.<br>
<br>
I wait for the connection to be established<br><br>
</li><li>Then through wpa_cli I send a disconnect command.<br>
<br>
</li><li>through wpa_cli I send another ap_scan=2 command. <br>
<br>
</li><li>through wpa_cli I send another scan command.<br>
<br>
</li><li>through wpa_cli I send another select_network "FeatherSecure" command<br>
<br></li><li>At this point it just sits there.<br>
<br>
</li></ol><br>console msgs:<br><br><br>16:41:52: WPA: Sending EAPOL-Key 2/2<br>16:41:52: WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 03 11 00 20 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 0<br>0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0
<br>0 00 00 00 00 00 00 00 00 ab 6c 72 6b 74 28 48 88 22 b3 db c7 4e 65 65 77 00 00<br>16:41:52: WPA: Key negotiation completed with 00:0d:97:00:48:0f [PTK=TKIP GTK=TKIP]<br>16:41:52: CTRL_IFACE monitor send <a href="http://127.0.0.1:2797">
127.0.0.1:2797</a><br>16:41:52: Cancelling authentication timeout<br>16:41:52: State: GROUP_HANDSHAKE -> COMPLETED<br>16:41:52: CTRL-EVENT-CONNECTED - Connection to 00:0d:97:00:48:0f completed (auth) [id=0 id_str=]<br>
16:41:52: CTRL_IFACE monitor send <a href="http://127.0.0.1:2797">127.0.0.1:2797</a><br>16:41:52: EAPOL: External notification - portValid=1<br>16:41:52: EAPOL: SUPP_PAE entering state AUTHENTICATED<br>16:42:19: EAPOL: startWhen --> 0
<br>16:42:21: EAPOL: authWhile --> 0<br>RX ctrl_iface - hexdump_ascii(len=10):<br> 44 49 53 43 4f 4e 4e 45 43 54 DISCONNECT<br>16:42:21: State: COMPLETED -> DISCONNECTED<br>16:42:21: 16:42:21: NDIS: Set OID 0d010102 - hexdump(len=36): [REMOVED]
<br>16:42:22: MSNdis_StatusMediaDisconnect<br>16:42:22: InstanceName: 'Intel(R) PRO/Wireless 2200BG Network Connection #2'<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed
<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
<br>16:42:22: EAPOL: External notification - portEnabled=0<br>16:42:22: EAPOL: SUPP_PAE entering state DISCONNECTED<br>16:42:22: EAPOL: SUPP_BE entering state INITIALIZE<br>16:42:22: EAP: EAP entering state DISABLED<br>16:42:22: EAPOL: External notification - portValid=0
<br>16:42:22: NDIS: received event data - hexdump(len=55): 01 00 00 00 32 49 6e 74 65 6c 28 52 29 20 50 52 4f 2f 57 69 72 65 6c 65 73 73<br> 20 32 32 30 30 42 47 20 4e 65 74 77 6f 72 6b 20 43 6f 6e 6e 65 63 74 69 6f 6e 20 23 32
<br>16:42:22: NDIS: event - type 1<br>NDIS: event InstanceName - hexdump_ascii(len=50):<br> 49 6e 74 65 6c 28 52 29 20 50 52 4f 2f 57 69 72 Intel(R) PRO/Wir<br> 65 6c 65 73 73 20 32 32 30 30 42 47 20 4e 65 74 eless 2200BG Net
<br> 77 6f 72 6b 20 43 6f 6e 6e 65 63 74 69 6f 6e 20 work Connection<br> 23 32 #2<br>16:42:22: NDIS: Media Disconnect Event<br>16:42:22: Added BSSID 00:0d:97:00:48:0f into blacklist
<br>16:42:22: State: DISCONNECTED -> DISCONNECTED<br>16:42:22: EAPOL: External notification - portEnabled=0<br>16:42:22: EAPOL: External notification - portValid=0<br>16:42:22: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<br>16:42:22: CTRL_IFACE monitor send <a href="http://127.0.0.1:2797">127.0.0.1:2797</a><br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]<br>16:42:22: __func__ not defined: oid=0xd010101 len (6) failed
<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]<br>16:42:22: 16:42:22: NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
<br><br><br>now another select_network of the <span style="font-weight: bold;">same </span>network<br><br><br>RX ctrl_iface - hexdump_ascii(len=9):<br> 41 50 5f 53 43 41 4e 20 32 AP_SCAN 2<br>RX ctrl_iface - hexdump_ascii(len=4):
<br> 53 43 41 4e SCAN<br>16:42:30: Setting scan request: 0 sec 0 usec<br>16:42:50: EAPOL: idleWhile --> 0<br>RX ctrl_iface - hexdump_ascii(len=28):<br> 53 45 4c 45 43 54 5f 4e 45 54 57 4f 52 4b 20 46 SELECT_NETWORK F
<br> 65 61 74 68 65 72 53 65 63 75 72 65 eatherSecure<br>16:44:45: CTRL_IFACE: SELECT_NETWORK id=0<br>16:44:45: Setting scan request: 0 sec 0 usec<br><br><br>Hope this helps you determine what I'm not doing or what is missing.
<br><br><br>george<br><br><br><br><div><span class="gmail_quote">On 8/5/06, <b class="gmail_sendername">George S. Lockwood</b> <<a href="mailto:gslockwood@gmail.com">gslockwood@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I can get you a log and a list of commands, but not until Monday am Pacific Standard Time. <br><br>In the meantime, I just sent you a synopsis of what I'm wanting to achieve. Perhaps you can add comments / correct my steps.
<br><br>Or just provide the proper sequence of commands to accomplish my highlevel goal (please see below). <br><br><br><span style="text-decoration: underline;">Highlevel</span><br>My hopes are to send a series of commands to the supplicant in order to connect to a number of different networks with a countless number of identities and passwords (I'll take care of the other security variables such as eap and phase, etc).
<br><br>Hopefully this makes sense.<br><br>Tell you what, if you could send me the proper sequence of commands list. I'll try it out to the 'T' and send you the log that comes from it (if doesn't work). That way you are in charge and really know how to examine the logged results.
<br><br>sound reasonable?<br><br>as always thanks so much!!<br></div><div><span class="sg"><br>george</span></div><div><span class="e" id="q_10cdfba5b9baf4ad_2"><br><br><div><span class="gmail_quote">On 8/5/06, <b class="gmail_sendername">
Jouni Malinen</b> <<a href="mailto:jkmaline@cc.hut.fi" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jkmaline@cc.hut.fi
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, Aug 04, 2006 at 07:40:49AM -0700, George S. Lockwood wrote:<br>
> 3. I can successfully enable on of the networks and get it to<br>> connect. I believe I do the following:<br>> 1. list the networks<br>> 2. enable the one I want<br>> 3. select the one I want (not sure the difference between enable
<br>> and select)<br>> 4. reassociate.<br><br>Enabling a network will only enable one of the networks without changing<br>ocnfiguration for other networks. Selecting a network enables the<br>selected network and disables all other networks.
<br><br>> 5. Trying to repeat the substeps of Step 3. to connect to a different<br>> network (or the same again) doesn't establish the connection.<br><br>Please send the full set of commands you tried and include description
<br>on which command did not work in the way you expected. I would also like<br>to see the debug log from wpa_supplicant (with -dd on command line) for<br>this case. It should be possible to use select_network to switch between
<br>configured networks and this should not require restarting of either<br>wpa_supplicant or wpa_cli.<br><br>--<br>Jouni Malinen PGP id EFC895FA<br>_______________________________________________
<br>HostAP mailing list<br><a href="mailto:HostAP@shmoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">HostAP@shmoo.com</a><br><a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.shmoo.com/mailman/listinfo/hostap</a><br></blockquote></div><br>
</span></div></blockquote></div><br>