<div class="gmail_quote">Hi<div><br></div><div>I am using hostapd and wpa-supplicant ver 0.8.x for my ap and client running linux 2.6.31 version with mips architecture. There is some issue while trying to use WPA-PSK security method. With the hostapd running I give the command to run wpa_supplicant. However, it says &#39;ASSOCIATED&#39; when run in debug mode. and after which it doesn&#39;t perform a 4-way handshake. it immediately disconnects from the AP and tries to scan and associate again. What could be the reason behind this. I&#39;ve checked every possible detail and everything seem to be correct. Here is the wpa_supplicant.conf file</div>

<div><br></div><div><div>ap_scan=1</div><div>network={</div><div> ssid=&quot;wireless_vap_333&quot;</div><div> scan_ssid=1</div><div>    proto=WPA</div><div>        key_mgmt=WPA-PSK</div><div>        pairwise=CCMP</div><div>

        psk=&quot;firmware123&quot;</div><div>}</div></div><div><br></div><div>and the corresponding hostapd.conf file being </div><div><br></div><div><div>interface=ath0</div><div>bridge=br0</div><div>logger_syslog=-1</div>

<div>logger_syslog_level=2</div><div>logger_stdout=-1</div><div>logger_stdout_level=2</div><div>ctrl_interface=/var/run/hostapd</div><div>ctrl_interface_group=0</div><div>ssid=wireless_vap_333</div><div>dtim_period=2</div>

<div>max_num_sta=255</div><div>macaddr_acl=0</div><div>auth_algs=1</div><div>ignore_broadcast_ssid=0</div><div>wme_enabled=0</div><div>ieee8021x=0</div><div>eapol_version=2</div><div>eapol_key_index_workaround=0</div><div>

eap_server=1</div><div>wpa=1</div><div>wpa_passphrase=firmware123</div><div>wpa_key_mgmt=WPA-PSK</div><div>wpa_pairwise=CCMP</div><div>wpa_strict_rekey=1</div></div><div><br></div><div>I&#39;ve tried to my best to solve this issue. But I couldn&#39;t solve it. And the command i use to run the hostapd and wpa_supplicant are  </div>

<div>hostapd -B /tmp/hostapd.conf</div><div>wpa_supplicant -c/tmp/wpa_supplicant.conf -iath0 -bbr0 -dd</div><div><br></div><div>and kindly find attached the log of wpa_supplicant when it is trying to associate. It&#39;s a little lengthy.</div>

<div><br></div><div>Having a closer look revealed that the state changes from ASSOCIATING -&gt; ASSOCIATED. However, after that ath0 interface gets disabled before performing a 4way handshake and this whole process repeats infinitely. Why this is happening? I don&#39;t think its due to some configuration setting. Or am I wrong in assuming so?! Kindly help me out. I&#39;m struck at this stage and have been breaking my head over it for the past 2 days!</div>

<div><br></div><div>Thanks and Regards</div><div>R.Vasanth Ragavendran.</div>
</div><br>