<div dir="ltr">Hello Avinash, <div><br></div><div>so I might did not understand the WPS process completly. </div><div><br></div><div>What I try to do is start a AP and connect some clients (Android Smarphones) to it. But they connect successfully using WPS and then disconnect afterwards. </div>
<div>Am I supposed to handle the connection on the AP side? </div><div><br></div><div>I thought that the Key get&#39;s exchange using WPS and afterwards the connection will not drop. </div><div><br></div><div>Best regards, </div>
<div>Pascal</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-05 9:46 GMT+01:00 Avinash Patil <span dir="ltr">&lt;<a href="mailto:avinashapatil@gmail.com" target="_blank">avinashapatil@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Paskal,<div><br></div><div>Once WPS exchange is complete, you are supposed to initiated connection from external station device manually. WPS exchange is used to generate config file required for this connection. Deauthentication from mwifiex AP is expected after successful WPS exchange.</div>

<div><br></div><div>Please let me know if you see any issues.</div><div><br></div><div>Thanks,</div><div>Avinash</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Mar 5, 2014 at 1:51 PM, Pascal K <span dir="ltr">&lt;<a href="mailto:pascalkrauth@gmail.com" target="_blank">pascalkrauth@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello everyone, <div><br></div><div>I use a Marvell SD8787 wifi card. </div>
<div>A AP is configured and working stable until I connect a device through WPS</div>
<div><br></div><div>$hostapd_cli wps_pbc </div>
<div><br></div><div>my log shows &quot;WPS-Success&quot; and 2seconds later my device disconnects. </div><div>My config might be wrong. I use hostapd 2.0 on a 3.2 Linux Kernel with backported drivers from 3.12.2-1 for my Mwifiex based card. </div>


<div><br></div><div>Any suggestions? </div><div><br></div><div>Best regards, </div><div>Pascal</div><div><br></div><div>hostapd.conf </div><div><br></div><div><div>#############################################</div><div>

#</div>
<div>#       hostapd config for Access Point</div><div>#       with WPS functionality</div><div>#</div><div>#############################################</div><div><br></div><div>#Basic Access Point configurations</div><div>


<br></div><div>interface=uap0</div><div>driver=nl80211</div><div>ssid=IPEhub2_0002</div><div>hw_mode=g</div><div>ieee80211n=1</div><div>channel=3</div><div>macaddr_acl=0</div><div><br></div><div>wpa=2</div><div>wpa_passphrase=123456789</div>


<div>wpa_key_mgmt=WPA-PSK WPA-EAP</div><div>wpa_pairwise=TKIP CCMP</div><div><br></div><div>## Wmm setting for IEEE 802.11 draft</div><div># wmm_enabled=1</div><div><br></div><div>## Allow both Auth. algorithms</div><div>


auth_algs=3</div><div><br></div><div>ignore_broadcast_ssid=0</div><div>eap_reauth_period=0</div><div>eapol_version=1</div><div>#wpa_group_rekey=0</div><div>ctrl_interface=/var/run/hostapd</div><div>ctrl_interface_group=0</div>


<div>wpa_psk_file=/etc/hostapd.psk</div><div>eap_server=1</div><div><br></div><div>wps_state=2</div><div>ap_setup_locked=1</div></div><div>#############################################<br></div><div><br></div><div><br></div>


<div>Information from log of hostapd -dd</div><div><br></div><div><div>uap0: WPS-SUCCESS </div><div>EAP-WSC: WPS processing completed successfully - report EAP failure</div><div>EAP-WSC: MESG -&gt; FAIL</div><div>EAP: EAP entering state SELECT_ACTION</div>


<div>EAP: getDecision: method failed -&gt; FAILURE</div><div>EAP: EAP entering state FAILURE</div><div>EAP: Building EAP-Failure (id=142)</div><div>uap0: CTRL-EVENT-EAP-FAILURE 18:00:2d:9b:3f:96</div><div>IEEE 802.1X: 18:00:2d:9b:3f:96 BE_AUTH entering state FAIL</div>


<div>uap0: STA 18:00:2d:9b:3f:96 IEEE 802.1X: Sending EAP Packet (identifier 142)</div><div>IEEE 802.1X: 18:00:2d:9b:3f:96 AUTH_PAE entering state HELD</div><div>uap0: STA 18:00:2d:9b:3f:96 IEEE 802.1X: unauthorizing port</div>


<div>Could not set station 18:00:2d:9b:3f:96 flags for kernel driver (errno=97).</div><div>uap0: STA 18:00:2d:9b:3f:96 IEEE 802.1X: authentication failed - EAP type: 0 ((null))</div><div>uap0: STA 18:00:2d:9b:3f:96 IEEE 802.1X: Supplicant used different EAP type: 254 (expanded)</div>


<div>uap0: IEEE 802.1X: Force disconnection after EAP-Failure</div><div>ap_sta_disconnect: reschedule ap_handle_timer timeout for 18:00:2d:9b:3f:96 (5 seconds - AP_MAX_INACTIVITY_AFTER_DEAUTH)</div><div>IEEE 802.1X: 18:00:2d:9b:3f:96 BE_AUTH entering state IDLE</div>


<div>IEEE 802.1X: 18:00:2d:9b:3f:96 AUTH_PAE entering state INITIALIZE</div><div>EAP: EAP entering state DISABLED</div></div><div>....</div><div><div>uap0: Flushing old station entries</div><div>uap0: Deauthenticate all stations</div>


<div>wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0</div><div>wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0</div><div>wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0</div>


<div>wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0</div><div>nl80211: Skip disabling of Probe Request reporting nl_preq=0xbf680 while in AP mode</div><div>netlink: Operstate: linkmode=0, operstate=6</div>


<div>nl80211: Set mode ifindex 6 iftype 2 (STATION)</div><div>nl80211: Failed to set interface 6 to mode 2: -95 (Operation not supported)</div><div>nl80211: Try mode change after setting interface down</div><div>nl80211: Set mode ifindex 6 iftype 2 (STATION)</div>


<div>nl80211: Failed to set interface 6 to mode 2: -95 (Operation not supported)</div><div>nl80211: Interface mode change to 2 from 3 failed</div><div>nl80211: Unsubscribe mgmt frames handle 0xc0138 (deinit)</div><div>ELOOP: remaining socket: sock=11 eloop_data=0xc0180 user_data=0xbf680 handler=0x3b494</div>


</div><div><br></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com" target="_blank">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>