<DIV><includetail>Hello, I'm new to hostapd and wpa_supplicant. I have a few question to ask about EAP-SIM and the "non WPA network not allowed".<BR><BR>1.My hostapd.conf is:<BR>interface=wlan0<BR>bridge=br0<BR>driver=nl80211<BR>ssid=eap-sim<BR>hw_mode=g<BR>channel=1<BR>auth_algs=3<BR>ieee8021x=1<BR>eapol_version=1<BR>eap_server=1<BR>eap_user_file=./hostapd.eap_user<BR>eap_sim_db=unix:/tmp/hlr_auc_gw.sock<BR>radius_server_clients=./hostapd.radius_clients<BR>radius_server_auth_port=1812<BR>2.My hostapd.eap_user is:<BR># Wildcard for all other identities<BR>*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; #PEAP,TTLS,TLS,SIM,AKA<BR>"0"*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; [2]<BR>"1"*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; [2]<BR>"2"*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; [2]<BR>"3"*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; [2]<BR>"4"*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; [2]<BR>"5"*&nbsp; &nbsp; &nbsp; &nbsp; SIM&nbsp; &nbsp; [2]<BR>3.I run the hlr_auc_gw and use the o<SPAN id=result_box lang=en class=short_text><SPAN class=hps>riginal hostapd_sim.db<BR>4.My hostapd/.config is:<BR>CONFIG_DRIVER_NL80211=y<BR>CONFIG_EAP=y<BR>CONFIG_PKCS12=y<BR>CONFIG_RADIUS_SERVER=y<BR>CONFIG_EAP_SIM=y<BR>5.My wpa_supplicant/.config is:<BR>CONFIG_DRIVER_HOSTAP=y<BR>CONFIG_DRIVER_ATMEL=y<BR>CONFIG_DRIVER_WEXT=y<BR>CONFIG_DRIVER_NL80211=y<BR>CONFIG_DRIVER_WIRED=y<BR>CONFIG_IEEE8021X_EAPOL=y<BR>CONFIG_EAP_MD5=y<BR>CONFIG_EAP_MSCHAPV2=y<BR>CONFIG_EAP_TLS=y<BR>CONFIG_EAP_PEAP=y<BR>CONFIG_EAP_TTLS=y<BR>CONFIG_EAP_GTC=y<BR>CONFIG_EAP_OTP=y<BR>CONFIG_EAP_SIM=y<BR>CONFIG_EAP_LEAP=y<BR>CONFIG_PCSC=y<BR>CONFIG_CTRL_IFACE=y<BR>CONFIG_BACKEND=file<BR>CONFIG_PEERKEY=y<BR>6.My wpa_sim.conf<BR>ctrl_interface=/var/run/wpa_supplicant<BR>ctrl_interface_group=root<BR>ap_scan=0<BR>eapol_version=1<BR># EAP-SIM with a GSM SIM or USIM<BR>network={<BR>ssid="epa-sim"<BR>key_mgmt=WPA-EAP<BR>eap=SIM<BR>pin="1234"<BR>pcsc=""<BR>eapol_flags=0<BR>}<BR>7. I run "sudo ./wpa_supplicant -dd -D nl80211 -i wlan0 -c wpa_sim.conf"<BR>8.The output is:<BR></SPAN></SPAN></DIV>
<DIV>
<DIV style="COLOR: #000"><PRE>Setting scan request: 0 sec 100000 usec<BR>EAPOL: SUPP_PAE entering state DISCONNECTED<BR>EAPOL: Supplicant port status: Unauthorized<BR>EAPOL: KEY_RX entering state NO_KEY_RECEIVE<BR>EAPOL: SUPP_BE entering state INITIALIZE<BR>EAP: EAP entering state DISABLED<BR>EAPOL: Supplicant port status: Unauthorized<BR>EAPOL: Supplicant port status: Unauthorized<BR>Added interface wlan1<BR>RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])<BR>RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added<BR>RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])<BR>RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added<BR>State: DISCONNECTED -&amp;gt; SCANNING<BR>Starting AP scan for wildcard SSID<BR>nl80211: Scan SSID - hexdump_ascii(len=0): [NULL]<BR>Scan requested (ret=0) - scan timeout 10 seconds<BR>nl80211: Event message available<BR>nl80211: Scan trigger<BR>EAPOL: disable timer tick<BR>EAPOL: Supplicant port status: Unauthorized<BR>nl80211: Event message available<BR>nl80211: New scan results available<BR>Received scan results (4 BSSes)<BR>BSS: Start scan result update 1<BR>BSS: Add new id 0 BSSID 00:1a:1e:d2:6d:90 SSID 'NCRL'<BR>BSS: Add new id 1 BSSID c8:3a:35:10:2f:d8 SSID 'Tenda'<BR>BSS: Add new id 2 BSSID 00:0b:86:20:cc:20 SSID 'rcls-wlan'<BR>BSS: Add new id 3 BSSID 00:14:78:71:42:67 SSID 'eap-sim'<BR>New scan results available<BR>Selecting BSS from priority group 0<BR>Try to find WPA-enabled AP<BR>0: 00:1a:1e:d2:6d:90 ssid='NCRL' wpa_ie_len=22 rsn_ie_len=0 caps=0x431<BR>   skip - SSID mismatch<BR>1: c8:3a:35:10:2f:d8 ssid='Tenda' wpa_ie_len=22 rsn_ie_len=20 caps=0x11<BR>   skip - SSID mismatch<BR>2: 00:0b:86:20:cc:20 ssid='rcls-wlan' wpa_ie_len=0 rsn_ie_len=0 caps=0x431<BR>   skip - no WPA/RSN IE<BR>3: 00:14:78:71:42:67 ssid='eap-sim' wpa_ie_len=0 rsn_ie_len=0 caps=0x401<BR>   skip - no WPA/RSN IE<BR>Try to find non-WPA AP<BR>0: 00:1a:1e:d2:6d:90 ssid='NCRL' wpa_ie_len=22 rsn_ie_len=0 caps=0x431<BR>   skip - SSID mismatch<BR>1: c8:3a:35:10:2f:d8 ssid='Tenda' wpa_ie_len=22 rsn_ie_len=20 caps=0x11<BR>   skip - SSID mismatch<BR>2: 00:0b:86:20:cc:20 ssid='rcls-wlan' wpa_ie_len=0 rsn_ie_len=0 caps=0x431<BR>   skip - SSID mismatch<BR>3: 00:14:78:71:42:67 ssid='eap-sim' wpa_ie_len=0 rsn_ie_len=0 caps=0x401<BR>   skip - non-WPA network not allowed<BR>No suitable network found<BR>9.Where is wrong? How should I correct? Thank you very much!<BR></PRE><BR></DIV></includetail></DIV>