LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   No luck with WPA and WPA_SUPPLICANT (https://www.linuxquestions.org/questions/mandriva-30/no-luck-with-wpa-and-wpa_supplicant-439267/)

mellin 04-27-2006 02:49 AM

No luck with WPA and WPA_SUPPLICANT
 
I have Mandriva 2006 free installed to IBM Thinkpad T41. This laptop comes pre-installed with PRO/Wireless LAN 2100 3B Mini PCI. When initially installed, 2.6.12-12mdk-i686-up-4GB kernel supports this card with ipw2100 module.

So, let OS do all the magic and ipw2100 gets loaded, interface configured as eth1 and open networks work like charm! But, in comes the WPA and things start to go awry :(

I have tried with the internal Wlan card and with another one, Linksys WPC54G that gets connected to PC-CARD slot. When working with the Linksys card, i use Ndiswrapper with Windows drivers. It gets configured as wlan0 and i can scan networks through it with the iwlist utility, too.

/etc/wpa_supplicant.conf
Code:

ctrl_interface=/var/run/wpa_supplicant  # for wpa_cli support
eapol_version=1

network={
  ssid="mmwlan"
  psk="secret"
  key_mgmt=WPA-PSK
  pairwise= TKIP CCMP
  group=TKIP CCMP
  priority=2
  proto=WPA
}


Ipw2100 firmware was downloaded from the project page
Code:

[root@mandriva ~]# ll /lib/hotplug/firmware/
total 212
-rw-r--r--  1 root root 209190 Apr 25 20:03 ipw2100-1.3.fw


I load wpa_supplicant like this if using ipw2100

Code:

wpa_supplicant -i eth1 -c /etc/wpa_supplicant.conf -D ipw -d
When excuted, wpa_supplicant prints this in continues loop:

Code:

[root@mandriva ~]# wpa_supplicant -i eth1 -D ipw -c /etc/wpa_supplicant.conf -d
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'
eapol_version=1
Priority group 0
  id=0 ssid='mmwlan'
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)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:0c:f1:19:a6:a9
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
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=6):
    6d 6d 77 6c 61 6e                                mmwlan
Scan timeout - try to get results
Received 445 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:12:17:de:46:45 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
  skip - no WPA/RSN IE
1: 00:90:4b:83:37:f1 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
  skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
State: SCANNING -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_ipw_set_wpa: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_drop_unencrypted: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_countermeasures: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
No keys have been configured - skip key clearing

I doesn't matter whether i use WPC54G or internal Intel, they get, to my eye, identical output from wpa_supplicant. So it clearly has issues to deal, but i don't know where to start looking for :(

My router is Linksys WRT54G. WPA personal enabled, TKIP as algorithm. No MAC filter, SSID broadcast enabled.

rkelsen 04-27-2006 02:57 AM

Did you use wpa_supplicant in package form? Or did you compile it yourself?

It is a bit of a fussy program because it depends upon the rest of your environment, but that's nothing a custom compile won't fix.

mellin 04-27-2006 03:05 AM

I used wpa_supplicant in package form. It didn't compile for some reason on my system, so i had to use the pre-installed one.

Code:

[mellin@mandriva ~]$ rpm -q -a | grep wpa_supplicant
wpa_supplicant-0.4.4-1mdk


mellin 04-28-2006 07:08 AM

Nobody has any idea, what those below might mean?

Code:

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.



All times are GMT -5. The time now is 09:57 AM.