LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-02-2010, 12:26 AM   #1
oicram
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Wpa Supplicant and iwlagn


hello friends, i have an Intel 5100 agn working properly on my laptop with WEP encryption, but i want the WPA support, when i tried to run
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d, i get the messege wpa_supplicant:driver lwlagn does not supported, my kernel version is 2.6.18-164.el5PAE, what can i do to make it works?

Thanks

Rene

Last edited by oicram; 02-02-2010 at 12:46 AM.
 
Old 02-03-2010, 07:21 AM   #2
devwatchdog
Member
 
Registered: Jan 2010
Posts: 202

Rep: Reputation: 47
wpa_supplicant does not support the iwlagn driver your card is using.

Type in 'wpa_supplicant -h' and you will see a list of the drivers in the output your system supports. Mine looks like this:

root@artume:~# wpa_supplicant -h
wpa_supplicant v0.6.9
Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi> and contributors

(...)

drivers:
wext = Linux wireless extensions (generic)
nl80211 = Linux nl80211/cfg80211
hostap = Host AP driver (Intersil Prism2/2.5/3)
atmel = ATMEL AT76C5XXx (USB, PCMCIA)
ndiswrapper = Linux ndiswrapper
ipw = Intel ipw2100/2200 driver (old; use wext with Linux 2.6.13 or newer)
wired = wpa_supplicant wired Ethernet driver
ralink = Ralink Wireless Client driver

******************************

As you can see in that list, iwlagn isn't present. Try using the generic extensions driver. (wext) The option would look like this: -Dwext
 
Old 02-03-2010, 03:48 PM   #3
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
I am using the iwlagn driver with the intel 4965AGN and wpa_supplicant works just fine.
Is that an exhaustive list?
 
Old 02-03-2010, 04:30 PM   #4
devwatchdog
Member
 
Registered: Jan 2010
Posts: 202

Rep: Reputation: 47
Quote:
Originally Posted by rkski View Post
I am using the iwlagn driver with the intel 4965AGN and wpa_supplicant works just fine.
Is that an exhaustive list?
Nah, that's what is running on a Slackware machine I have.

What are you using for designating the driver? (-D)

Here's the web site:

http://hostap.epitest.fi/wpa_supplicant/

On that page they list:


Supported wireless cards/drivers

Linux drivers that support nl80211/cfg80211 (most new drivers)
Linux drivers that support Linux Wireless Extensions v19 or newer with WPA/WPA2 extensions
Host AP driver for Prism2/2.5/3 (WPA and WPA2)
Linuxant DriverLoader with Windows NDIS driver supporting WPA/WPA2
Agere Systems Inc. Linux Driver (Hermes-I/Hermes-II chipset) (WPA, but not WPA2)
madwifi (Atheros ar521x)
ATMEL AT76C5XXx
Linux ndiswrapper
Broadcom wl.o driver
Intel ipw2100
Intel ipw2200
Wired Ethernet drivers
BSD net80211 layer (e.g., Atheros driver) (FreeBSD 6-CURRENT and NetBSD current)
Windows NDIS drivers (Windows; at least XP and 2000, others not tested)

**********************************************

I'm thinking that the iwlagn driver is supported in wpa_supplicant with the wext (Linux Wireless Extensions) driver. I use the wext driver with Ralink rt73, Atheros AR2414 and Realtek RTL8185 cards now. I'm interested to see what options you use to configure wpa_supplicant at boot. This is what I use:

/usr/sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

Last edited by devwatchdog; 02-03-2010 at 04:32 PM.
 
Old 02-03-2010, 10:24 PM   #5
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
I'm using the following:

Code:
/usr/sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B'
I guess I'm using the wext driver by default as I don't list the -D option. Everything works fine without it.

Quote:
when i tried to run
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d, i get the messege wpa_supplicant:driver lwlagn does not supported
Maybe the OP should try the above with -Dwext option.
 
Old 02-06-2010, 01:27 PM   #6
oicram
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hello, i already tried that and i get this:

wpa_supplicant -D wext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Device wlan0 kernel driver name: iwlagn.
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - CTRL-EVENT-TERMINATING - signal 2 received
ioctl[SIOCSIWAUTH]: Operation not supported

I think changing a kernel config could works ? what can i do ?

regards
 
Old 02-07-2010, 07:07 AM   #7
devwatchdog
Member
 
Registered: Jan 2010
Posts: 202

Rep: Reputation: 47
Quote:
Originally Posted by oicram View Post
Hello, i already tried that and i get this:

wpa_supplicant -D wext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Device wlan0 kernel driver name: iwlagn.
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - CTRL-EVENT-TERMINATING - signal 2 received
ioctl[SIOCSIWAUTH]: Operation not supported

I think changing a kernel config could works ? what can i do ?

regards
I'd hold off on mucking around with the kernel config until it has been determined that is the problem. I get the feeling that you could have a config option in your wpa_supplicant file wrong.

Could you show us the contents of wpa_supplicant? Just alter the security bits so you're not exposing sensitive information.

It's time to fire up debugging!

Give this a shot and let us see what the results are:

wpa_supplicant -d -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

You're going to see quite a bit of information with that, and if it isn't detailed enough, we can change the '-d' option to '-dd'.

This is what I see on a Slackware laptop:

Code:
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctr
l_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Priority group 0
   id=0 ssid='xxxxxx'
Initializing interface (2) 'wlan0'
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)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:18:xx:xx:xx:xx
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 2
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=7):
     4d xx xx xx xx xx xx                              xxxxxxx         
Trying to get current scan results first without requesting a new scan to speed 
up initial association
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)
Scan requested (ret=0) - scan timeout 5 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 1764 bytes of scan results (7 BSSes)
Scan results: 7
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:07:40:01:00:2c ssid='xxxxxx' wpa_ie_len=0 rsn_ie_len=22 caps=0x11
   selected based on RSN IE
   selected WPA AP 00:xx:xx:xx:xx:xx ssid='xxxxxx'
Try to find non-WPA AP
Trying to associate with 00:xx:xx:xx:xx:xx (SSID='xxxxxx' freq=2442 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1

(snip)
I imagine you'll see something similar, but of course it will indicate there is a problem and hopefully provide a clue as to what.
 
Old 02-12-2010, 01:33 AM   #8
oicram
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, I Will try that, and then a tell you,

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA Supplicant (cannot connect to wpa supplicant - retrying) r11_kaede Linux - Networking 7 09-14-2009 03:46 AM
Wpa Supplicant xp1o1d5 Linux - Newbie 1 03-31-2009 10:32 PM
iwlagn: WPA not working on Sidux Vinter Linux - Wireless Networking 2 01-21-2009 05:16 PM
usb network adapter with ndiswrapper can't connect to wpa with wpa-supplicant AceofSpades19 Linux - Wireless Networking 8 03-30-2008 05:13 PM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration