wpa_supplicant y clave wep

Sebastian Saenz Ford ssaenzford en gmail.com
Sab Nov 5 17:25:53 CST 2005


Bones.

>
> Como necesito alguna forma automática de suministrar claves wep a los AP
> con
> los que trabajo (aunque pueda hacerlo a mano), me he puesto a trastear con
> wpa_supplicant, aunque tengo problemillas.
>
> La clave es la correcta, ya que configurando manualmente va todo ok. Tengo
> un portátil con una ipw2200bg, y uso breezy, kernel 2.6.14 compilado por
> mi,
> y los últimos drivers del proyecto ipw (v.1.0.8, ieee80211 v.1.1.6 y
> firmware
> 2.4).
>
> La configuración del demonio es "-B -w -i eth1 -D ipw
> -c /etc/wpa_supplicant.conf", y mi fichero de configuración es como sigue
> (a
> excepción de la clave wep, 26 dígitos decimales):
> -----
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> eapol_version=1
> ap_scan=1
> fast_reauth=1
> network={
> ssid="QAP"
> key_mgmt=NONE
> wep_key0=00000000000000000000000000
> wep_key1=
> wep_key2=
> wep_key3=
> wep_tx_keyidx=0
> # auth_alg=SHARED
> auth_alg=OPEN
> }
>
> network={
> ssid="any"
> key_mgmt=NONE
> }
> -----
>
> Por último (largo!), los mensajes que da al arrancar en consola. Nunca
> llega
> a suministrar la clave wep a la eth1 (comprobado con iwconfig eth1 en otra
> consola). Gracias anticipadas por cualquier respuesta ;)
>
> -----
> root en quinipt:/etc# wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -Dipw
> -dd
> Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw'
> Configuration file '/etc/wpa_supplicant.conf' ->
> '/etc/wpa_supplicant.conf'
> Reading configuration file '/etc/wpa_supplicant.conf'
> ctrl_interface='/var/run/wpa_supplicant'
> ctrl_interface_group=0
> eapol_version=1
> ap_scan=1
> fast_reauth=1
> Line: 278 - start of a new network block
> ssid - hexdump_ascii(len=3):
> 51 41 50 QAP
> key_mgmt: 0x4
> wep_key0 - hexdump(len=13): [REMOVED] --> esto no lo entiendo 8-?
> wep_key1 - hexdump(len=0: [REMOVED]
> wep_key2 - hexdump(len=0): [REMOVED]
> wep_key3 - hexdump(len=0): [REMOVED]
> wep_tx_keyidx=0 (0x0)
> auth_alg: 0x1
> Line: 290 - start of a new network block
> ssid - hexdump_ascii(len=3):
> 61 6e 79 any
> key_mgmt: 0x4
> Priority group 0
> id=0 ssid='QAP'
> id=1 ssid='any'
> Initializing interface (2) 'eth1'
> EAPOL: SUPP_PAE entering state DISCONNECTED
> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> EAPOL: SUPP_BE entering state INITIALIZE
> EAP: EAP entering state DISABLED
> EAPOL: External notification - portEnabled=0
> EAPOL: External notification - portValid=0
> wpa_driver_ipw_init is called
> ioctl[SIOCSIWPMKSA]: Operation not supported
> SIOCGIWRANGE: WE(compiled)=19 WE(source)=16 enc_capa=0x0
> capabilities: key_mgmt 0x0 enc 0x3
> Own MAC address: 00:0e:35:e7:c9:67
> wpa_driver_ipw_set_wpa: enabled=1
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_countermeasures: enabled=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> wpa_driver_ipw_set_drop_unencrypted: enabled=1
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Setting scan request: 0 sec 100000 usec
> Wireless event: cmd=0x8b06 len=8
> State: DISCONNECTED -> SCANNING
> Starting AP scan (broadcast SSID)
> Scan timeout - try to get results
> Received 165 bytes of scan results (1 BSSes)
> Scan results: 1
> Selecting BSS from priority group 0
> 0: 00:a0:c5:6b:4e:7f ssid='QAP' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 --> OK
> skip - no WPA/RSN IE
> selected non-WPA AP 00:a0:c5:6b:4e:7f ssid='QAP'
> Trying to associate with 00:a0:c5:6b:4e:7f (SSID='QAP' freq=0 MHz)
> Cancelling scan request --> ???
> WPA: clearing own WPA/RSN IE
> Automatic auth_alg selection: 0x1
> Overriding auth_alg selection: 0x1
> wpa_driver_ipw_set_auth_alg: auth_alg=0x1
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> WPA: clearing AP WPA IE
> WPA: clearing AP RSN IE
> WPA: clearing own WPA/RSN IE
> No keys have been configured - skip key clearing --> ???
> wpa_driver_ipw_set_key: alg=WEP key_idx=0 set_tx=1 seq_len=0 key_len=13
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_key: alg=WEP key_idx=1 set_tx=0 seq_len=0 key_len=13
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_drop_unencrypted: enabled=1
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> State: SCANNING -> ASSOCIATING
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Setting authentication timeout: 5 sec 0 usec
> EAPOL: External notification - portControl=ForceAuthorized
> Wireless event: cmd=0x8b1a len=12
> Authentication with 00:00:00:00:00:00 timed out.
> Added BSSID 00:00:00:00:00:00 into blacklist
> State: ASSOCIATING -> DISCONNECTED
> wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> ...

Buscà en www.google.com/linux <http://www.google.com/linux>:
IPW_IOCTL_WPA_SUPPLICANT
y tendràs la soluciòn.
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://lists.ubuntu.com/archives/ubuntu-es/attachments/20051105/1fa83a5c/attachment.htm


Más información sobre la lista de distribución ubuntu-es