Hi,<br>I have two network blocks in my wpa_supplicant.conf file.My wpa_supplicant.conf file is as shown below:<br><br>ctrl_interface=/var/run/wpa_supplicant<br>fast_reauth=0<br>update_config=1<br>network={<br>    ssid=&quot;Cisco21444&quot;<br>
    proto=RSN<br>    key_mgmt=WPA-EAP<br>    pairwise=CCMP<br>    auth_alg=OPEN<br>    eap=TLS<br>    identity=&quot;arvind&quot;<br>    ca_cert=&quot;/etc/wireless/cacert.pem&quot;<br>    private_key=&quot;/etc/wireless/linux_arvind.p12&quot;<br>
    private_key_passwd=&quot;password&quot;<br>}<br><br>network={<br>    ssid=&quot;Cisco21444&quot;<br>    proto=RSN<br>    key_mgmt=WPA-EAP<br>    pairwise=CCMP<br>    auth_alg=OPEN<br>    eap=TLS<br>    identity=&quot;arvind&quot;<br>
    ca_cert=&quot;/etc/wireless/abcd.pem&quot;<br>    private_key=&quot;/etc/wireless/abcd.p12&quot;<br>    private_key_passwd=&quot;password&quot;<br>    disabled=1<br>}<br><br>The first network block has correct values and in the second network block ca_cert and private_key have wrong values(even those files doesn&#39;t exist).<br>
I have started wpa_supplicant process and I have made a following sequence of commands through wpa_cli.<br>a)select_network 0<br>b)disconnect<br>c)select_network 1<br>Even after loading the wrong network block wpa_supplicant has connected to the router.I can ping the router as well as my freeradius server.I think the problem is selecting the second network block is not making  EAP authentication again.<br>
I have also tried another following sequence of commands through wpa_cli(This is fresh run of wpa_supplicant process)<br>a)select_network 0<br>b)logoff<br>c)select_network 1<br>d)logon<br>Even in this case,logon is not starting EAP authentication and wpa_supplicant has connected to the router.<br>
The wpa_cli log is below for reference(second sequence of commands)<br>What can be the solution for this problem. <br><br><br>&gt; status<br>&lt;2&gt;CTRL-EVENT-SCAN-RESULTS <br>&lt;2&gt;WPS-AP-AVAILABLE <br>&lt;2&gt;Trying to associate with 58:6d:8f:26:1a:f8 (SSID=&#39;Cisco21444&#39; freq=2462 MHz)<br>
&lt;2&gt;Associated with 58:6d:8f:26:1a:f8<br>&lt;2&gt;CTRL-EVENT-EAP-STARTED EAP authentication started<br>&lt;2&gt;CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=21 -&gt; NAK<br>&lt;2&gt;CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=13<br>
&lt;2&gt;CTRL-EVENT-EAP-METHOD EAP vendor 0 method 13 (TLS) selected<br>&lt;2&gt;CTRL-EVENT-EAP-PEER-CERT depth=1 subject=&#39;/C=IN/ST=UttarPradesh/O=SISC/OU=Connectivity/CN=THATHA RAGA NARESH KUMAR/emailAddress=<a href="mailto:raganaresh.thatha@gmail.com">raganaresh.thatha@gmail.com</a>&#39;<br>
&lt;2&gt;CTRL-EVENT-EAP-PEER-CERT depth=0 subject=&#39;/C=IN/ST=UttarPradesh/O=SISC/OU=Connectivity/CN=server/emailAddress=<a href="mailto:server@gmail.com">server@gmail.com</a>&#39;<br>&lt;2&gt;CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully<br>
&lt;2&gt;WPA: Key negotiation completed with 58:6d:8f:26:1a:f8 [PTK=CCMP GTK=CCMP]<br>&lt;2&gt;CTRL-EVENT-CONNECTED - Connection to 58:6d:8f:26:1a:f8 completed (auth) [id=0 id_str=]<br>bssid=58:6d:8f:26:1a:f8<br>ssid=Cisco21444<br>
id=0<br>mode=station<br>pairwise_cipher=CCMP<br>group_cipher=CCMP<br>key_mgmt=WPA2/IEEE 802.1X/EAP<br>wpa_state=COMPLETED<br>Supplicant PAE state=AUTHENTICATED<br>suppPortStatus=Authorized<br>EAP state=SUCCESS<br>selectedMethod=13 (EAP-TLS)<br>
EAP TLS cipher=DHE-RSA-AES256-SHA<br>&gt; logoff<br>OK<br>&gt; select_network 1<br>OK<br>&gt; logon<br>&lt;2&gt;CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0<br>&lt;2&gt;CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0<br>
&lt;2&gt;CTRL-EVENT-BSS-ADDED 11 58:6d:8f:26:1a:f9<br>&lt;2&gt;CTRL-EVENT-SCAN-RESULTS <br>&lt;2&gt;WPS-AP-AVAILABLE <br>&lt;2&gt;Trying to associate with 58:6d:8f:26:1a:f8 (SSID=&#39;Cisco21444&#39; freq=2462 MHz)<br>&lt;2&gt;Associated with 58:6d:8f:26:1a:f8<br>
&lt;2&gt;WPA: Key negotiation completed with 58:6d:8f:26:1a:f8 [PTK=CCMP GTK=CCMP]<br>&lt;2&gt;CTRL-EVENT-CONNECTED - Connection to 58:6d:8f:26:1a:f8 completed (reauth) [id=1 id_str=]<br>OK<br>&gt; status<br>bssid=58:6d:8f:26:1a:f8<br>
ssid=Cisco21444<br>id=1<br>mode=station<br>pairwise_cipher=CCMP<br>group_cipher=CCMP<br>key_mgmt=WPA2/IEEE 802.1X/EAP<br>wpa_state=COMPLETED<br>Supplicant PAE state=AUTHENTICATED<br>suppPortStatus=Authorized<br>EAP state=SUCCESS<br>
<br><br><br>Thanks &amp; Regards,<br>Naresh.<br><br>