Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

WPA on an Atmel based NIC??? [was: mad at wpa_supplicant]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
wazow
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Thu Jan 08, 2004 8:26 am
Location: Rødovre, Denmark
Contact:
Contact wazow
Website

WPA on an Atmel based NIC??? [was: mad at wpa_supplicant]

  • Quote

Post by wazow » Sat Mar 10, 2007 8:59 pm

Can anybody guide me on configuring wpa_supplicant? I have spent many hours on this, have read through many posts and cannot see what am I doing wrong. wpa_supplicant continues to find no accesspoints.

My NIC is "Intel Corporation PRO/Wireless LAN 2100". I am trying to get wpa_supplicant to connect to unencrypted network first, just to make things simpler. I have now opened my router (D-Link DI-514) completely (no encryption). I am running wpa_supplicant in the following way:

Code: Select all

 wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -d -Dipw
where /etc/wpa_supplicant.conf contains

Code: Select all

network={
        ssid="my-essid-in-double-quotes"
        key_mgmt=NONE
}
I always get no access points:

Code: Select all

sancy ~ # wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -d -Dipw
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='my-essid-in-quotes'
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
SIOCGIWRANGE: WE(compiled)=20 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Linux wireless extensions version 20 detected.
ipw2x00 driver uses driver_wext (-Dwext) instead of driver_ipw.
Own MAC address: 00:0c:f1:59:2b:5b
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
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1022 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1023 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1023 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
....
and so on... Chagning the driver to -Dwext changes some of the messages but the net effect is the same. No APs are found. I am desperate now. Needless to say the same networks connects with no problemws whatsoever using wireless tools.

My mileage is similar if I activate WPA-PSK on the router and configure the machine accordingly. I am seeing on two machines with different hardware, so I must be doing something wrong. What may I be missing? A cry for help...
Last edited by wazow on Sun Mar 11, 2007 7:11 pm, edited 1 time in total.
Top
infinite1der
n00b
n00b
Posts: 52
Joined: Tue Jan 31, 2006 8:59 pm
Location: Atlanta, GA
Contact:
Contact infinite1der
Website

  • Quote

Post by infinite1der » Sat Mar 10, 2007 9:10 pm

You should be using -Dwext for the ipw2x00 stuff. Post the errors using -Dwext.

When you say you "can't find any APs", do you see your AP with `iwlist eth1 scan` ? Even with wpa_supplicant not started, you should at least see your AP.
----------------------
James A. Thornton
Atlanta, GA

How To Ask Questions the Smart Way
Top
wazow
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Thu Jan 08, 2004 8:26 am
Location: Rødovre, Denmark
Contact:
Contact wazow
Website

  • Quote

Post by wazow » Sat Mar 10, 2007 9:27 pm

infinite1der wrote:You should be using -Dwext for the ipw2x00 stuff. Post the errors using -Dwext.

When you say you "can't find any APs", do you see your AP with `iwlist eth1 scan` ? Even with wpa_supplicant not started, you should at least see your AP.
This is a good point. Normally I can see the APs around, but now I could not. It seems that there might be some instability in the kernel module. I have reloaded the ipw2100 and now iwlist can see my access point ... and ... wpa_supplicant works! Thanks a lot!

I kill wpa_supplicant and try to run again and nothing works as before (no APs in iwlist and wpa_supplicant). Reloading the module helps again. Is there any known instability with this in-kernel driver?

(I am using the wext driver with wpa_supplicant, as you suggested).
Top
wazow
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Thu Jan 08, 2004 8:26 am
Location: Rødovre, Denmark
Contact:
Contact wazow
Website

  • Quote

Post by wazow » Sun Mar 11, 2007 8:38 am

Ok. Perhaps it is not fully smooth, but I can at least connect from my ipw2100 nic. My other machine has a PCMCIA Atmel based nic, and I still have no success with it.

Code: Select all

zieleniec ~ # wpa_supplicant -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -d -Datmel
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'atmel' ctrl_interface 'N/A' bridge 'N/A'     
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
Priority group 0
   id=1 ssid='Voldumvej'
Priority group -9999999
   id=0 ssid=''
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
SIOCGIWRANGE: WE(compiled)=21 WE(source)=21 enc_capa=0x0
  capabilities: key_mgmt 0x0 enc 0x3
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:0a:5e:20:a4:7c
wpa_driver_atmel_set_wpa eth1
wpa_driver_atmel_set_wpa: enabled=1
ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported
ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported
Driver does not support WPA.
wpa_driver_atmel_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_countermeasures - not yet implemented
wpa_driver_atmel_set_drop_unencrypted - not yet implemented
Setting scan request: 0 sec 100000 usec
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 65 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:11:95:5b:50:4b ssid='Voldumvej' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Selecting BSS from priority group -9999999
0: 00:11:95:5b:50:4b ssid='Voldumvej' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 65 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:11:95:5b:50:4b ssid='Voldumvej' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Selecting BSS from priority group -9999999
0: 00:11:95:5b:50:4b ssid='Voldumvej' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_atmel_set_wpa eth1
wpa_driver_atmel_set_wpa: enabled=0
ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported
ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported
Failed to disable WPA in the driver.
wpa_driver_atmel_set_drop_unencrypted - not yet implemented
wpa_driver_atmel_set_countermeasures - not yet implemented
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
...
The most scary fragment is

Code: Select all

wpa_driver_atmel_set_wpa: enabled=1
ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported
ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported
[/b]Driver does not support WPA.
wpa_driver_atmel_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
wpa_driver_atmel_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[ATMEL_WPA_IOCTL]: Invalid argument
Failed to set encryption.
 
but

Code: Select all

zieleniec ~ # cat /proc/driver/atmel 
Driver version:         0.98
Firmware version:       4.1 build 13
Firmware location:      atmel_at76c502_3com-wpa.bin loaded by hotplug
MAC memory type:        EEPROM
Regulatory domain:      MKK1
Host CRC checking:      Off
WPA-capable firmware:   Yes
Current state:          Management error
I have tried the wext driver with no better effect (I can post errors if anybody thinks that this would be helpful). I really want to get this other machine online.

Code: Select all

zieleniec ~ # uname -a
Linux zieleniec 2.6.19-gentoo-r5 #1 PREEMPT Sun Mar 11 01:48:13 CET 2007 i686 Celeron (Mendocino) GenuineIntel GNU/Linux
Atmel in kernel driver is used.

Code: Select all

zieleniec ~ # iwconfig --version
iwconfig  Wireless-Tools version 28
          Compatible with Wireless Extension v11 to v20.

Kernel    Currently compiled with Wireless Extension v21.

eth1      Recommend Wireless Extension v21 or later,
          Currently compiled with Wireless Extension v21.

Code: Select all

wpa_supplicant v0.5.7
Desperate.
Top
wazow
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Thu Jan 08, 2004 8:26 am
Location: Rødovre, Denmark
Contact:
Contact wazow
Website

  • Quote

Post by wazow » Sun Mar 11, 2007 7:10 pm

Hallo?... is there any body out there running WPA with an Atmel based NIC? Give me at least a bit of hope ...

EDIT: just a remark that I did not have time to work on that problem recently, but I am still interested in solving it. I do not want it to disappear from egosearch thread list.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic