LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Wpa Supplicant and iwlagn (https://www.linuxquestions.org/questions/linux-networking-3/wpa-supplicant-and-iwlagn-786348/)

oicram 02-02-2010 12:26 AM

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

devwatchdog 02-03-2010 07:21 AM

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

rkski 02-03-2010 03:48 PM

I am using the iwlagn driver with the intel 4965AGN and wpa_supplicant works just fine.
Is that an exhaustive list?

devwatchdog 02-03-2010 04:30 PM

Quote:

Originally Posted by rkski (Post 3851343)
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

rkski 02-03-2010 10:24 PM

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.

oicram 02-06-2010 01:27 PM

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

devwatchdog 02-07-2010 07:07 AM

Quote:

Originally Posted by oicram (Post 3855032)
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.

oicram 02-12-2010 01:33 AM

Ok, I Will try that, and then a tell you,

Thanks,


All times are GMT -5. The time now is 04:31 AM.