Hi all,<br><br> Is it possible to configure wpa_supplicant for EAP-SIM authentication with no SIM Card?<br><br> I just want to simulate a EAP-SIM client authentication.<br><br> I&#39;m using a configuration file like that:<br>
<br># EAP-SIM with a GSM SIM or USIM<br>network={<br>   ssid=&quot;vexatt-eap&quot;<br>   key_mgmt=WPA-EAP<br>   eap=SIM<br>   pin=&quot;1234&quot;<br>   pcsc=&quot;&quot;<br>}<br><br>  but it seems wpa_supplicant is trying to get some information from a SIM Card.<br>
<br>  Thats what I got from an execution of wpa_supplicant:<br><br>rafonso@rafonso-laptop:~/Vex/projetos/EAP-SIM/wpa_supplicant$ sudo wpa_supplicant -c ./eap-sim.conf -iwlan1 -ddd<br>[sudo] password for rafonso: <br>Initializing interface &#39;wlan1&#39; conf &#39;./eap-sim.conf&#39; driver &#39;default&#39; ctrl_interface &#39;N/A&#39; bridge &#39;N/A&#39;<br>
Configuration file &#39;./eap-sim.conf&#39; -&gt; &#39;/home/rafonso/Vex/projetos/EAP-SIM/wpa_supplicant/./eap-sim.conf&#39;<br>Reading configuration file &#39;/home/rafonso/Vex/projetos/EAP-SIM/wpa_supplicant/./eap-sim.conf&#39;<br>
Line: 4 - start of a new network block<br>ssid - hexdump_ascii(len=10):<br>     76 65 78 61 74 74 2d 65 61 70                     vexatt-eap      <br>key_mgmt: 0x1<br>eap methods - hexdump(len=16): 00 00 00 00 12 00 00 00 00 00 00 00 00 00 00 00<br>
pin - hexdump_ascii(len=4): [REMOVED]<br>pcsc - hexdump_ascii(len=0):<br>Priority group 0<br>   id=0 ssid=&#39;vexatt-eap&#39;<br>Interface wlan1 set UP - waiting a second for the driver to complete initialization<br>SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf<br>
  capabilities: key_mgmt 0xf enc 0xf flags 0x0<br>WEXT: Operstate: linkmode=1, operstate=5<br>Own MAC address: 00:24:2b:c7:3d:02<br>wpa_driver_wext_set_wpa<br>wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0<br>
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0<br>wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0<br>wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0<br>wpa_driver_wext_set_countermeasures<br>
wpa_driver_wext_set_drop_unencrypted<br>RSN: flushing PMKID list in the driver<br>Setting scan request: 0 sec 100000 usec<br>WPS: UUID based on MAC address - hexdump(len=16): 36 ec 23 06 94 3c 50 5e 91 ca 08 ef fa 44 f6 e2<br>
WPS: Build Beacon and Probe Response IEs<br>WPS:  * Version<br>WPS:  * Wi-Fi Protected Setup State (0)<br>WPS:  * Version<br>WPS:  * Wi-Fi Protected Setup State (0)<br>WPS:  * Response Type (2)<br>WPS:  * UUID-E<br>WPS:  * Manufacturer<br>
WPS:  * Model Name<br>WPS:  * Model Number<br>WPS:  * Serial Number<br>WPS:  * Primary Device Type<br>WPS:  * Device Name<br>WPS:  * Config Methods (0)<br>WPS:  * RF Bands (3)<br>EAPOL: SUPP_PAE entering state DISCONNECTED<br>
EAPOL: KEY_RX entering state NO_KEY_RECEIVE<br>EAPOL: SUPP_BE entering state INITIALIZE<br>EAP: EAP entering state DISABLED<br>Added interface wlan1<br>RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()<br>RTM_NEWLINK, IFLA_IFNAME: Interface &#39;wlan1&#39; added<br>
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])<br>RTM_NEWLINK, IFLA_IFNAME: Interface &#39;wlan1&#39; added<br>RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])<br>RTM_NEWLINK, IFLA_IFNAME: Interface &#39;wlan1&#39; added<br>
Wireless event: cmd=0x8b19 len=8<br>Received 1520 bytes of scan results (4 BSSes)<br>New scan results available<br>Selecting BSS from priority group 0<br>Try to find WPA-enabled AP<br>0: 00:14:1c:bc:7b:e1 ssid=&#39;vexatt-eap&#39; wpa_ie_len=24 rsn_ie_len=20 caps=0x11<br>
   selected based on RSN IE<br>   selected WPA AP 00:14:1c:bc:7b:e1 ssid=&#39;vexatt-eap&#39;<br>Selected network is configured to use SIM (sim=1 aka=0) - initialize PCSC<br>SCARD: initializing smart card interface<br>SCARD: Could not establish smart card context (err=-2146435043)<br>
SCARD: deinitializing smart card interface<br>Failed to initialize SIM (pcsc-lite)<br>Setting scan request: 10 sec 0 usec<br>RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])<br>RTM_NEWLINK, IFLA_IFNAME: Interface &#39;wlan1&#39; added<br>
Wireless event: cmd=0x8b06 len=8<br>EAPOL: disable timer tick<br>^CCTRL-EVENT-TERMINATING - signal 2 received<br>Removing interface wlan1<br>State: DISCONNECTED -&gt; DISCONNECTED<br>wpa_driver_wext_set_operstate: operstate 0-&gt;0 (DORMANT)<br>
WEXT: Operstate: linkmode=-1, operstate=5<br>No keys have been configured - skip key clearing<br>EAPOL: External notification - portEnabled=0<br>EAPOL: External notification - portValid=0<br>wpa_driver_wext_set_wpa<br>wpa_driver_wext_set_drop_unencrypted<br>
wpa_driver_wext_set_countermeasures<br>No keys have been configured - skip key clearing<br>Cancelling scan request<br>Cancelling authentication timeout<br>WEXT: Operstate: linkmode=0, operstate=6<br><br><br>  Any help would be great.<br>
<br> Thank you. <br clear="all"><br>-- <br>Ronaldo Afonso<br><a href="http://www.vexcorp.com/" target="_blank">www.vexcorp.com</a><br>+55 11 4932-5971<br><font color="#888888"><a href="mailto:ronaldo.afonso@vexcorp.com" target="_blank">ronaldo.afonso@vexcorp.com</a><br>
</font><br>