LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-25-2012, 04:41 PM   #1
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 69

Rep: Reputation: 21
No WPA encrypted wifi connection with kernel 3.2.2 via Wicd


Hi, after upgrading to the generic kernel 3.2.2 in slackware64-current I have lost encrypted wifi connection with my router. Wicd gives a 'bad password' error and only when disabling the wpa2 encryption on my home network I can connect to the web. Also connecting to unprotected public wifi-points, say on the train, works. The issue thus seems to be with wpa-supplicant.

Running kernel 2.6.37.6 with the exact same configuration/system does not give me these problems. Upon booting and starting X I have directly a connection via wicd. Then, lspci -v gives:
Code:
Network controller: Intel Corporation WiFi Link 5100
	Subsystem: Intel Corporation WiFi Link 5100 AGN
	Flags: bus master, fast devsel, latency 0, IRQ 45
	Memory at fcffe000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [e0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-16-ea-ff-ff-53-36-e2
	Kernel driver in use: iwlagn
	Kernel modules: iwlagn
The network-controller is also recognized in kernel 3.2.2 but linked to another module, iwlwifi

Code:
Network controller: Intel Corporation WiFi Link 5100
	Subsystem: Intel Corporation WiFi Link 5100 AGN
	Flags: bus master, fast devsel, latency 0, IRQ 47
	Memory at fcffe000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [e0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-16-ea-ff-ff-53-36-e2
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
The wicd.log (see the end) also mentions wpa-supplicant having difficulty:

Code:
2012/02/25 18:50:40 :: Starting wireless autoconnect...
2012/02/25 18:50:40 :: No wired connection present, attempting to autoconnect to wireless network
2012/02/25 18:50:40 :: scanning start
2012/02/25 18:50:40 :: ifconfig wlan0 up
2012/02/25 18:50:40 :: iwlist wlan0 scan
2012/02/25 18:50:43 :: hidden
2012/02/25 18:50:43 :: scanning done
2012/02/25 18:50:43 :: found 4 networks:
2012/02/25 18:50:43 :: found afterscript in configuration /usr/local/bin/noproxy
2012/02/25 18:50:43 :: found dhcphostname in configuration [computername]
2012/02/25 18:50:43 :: found postdisconnectscript in configuration None
2012/02/25 18:50:43 :: found use_dhcphostname in configuration 0
2012/02/25 18:50:43 :: found dns_domain in configuration None
2012/02/25 18:50:43 :: found gateway in configuration None
2012/02/25 18:50:43 :: found use_global_dns in configuration False
2012/02/25 18:50:43 :: found ip in configuration None
2012/02/25 18:50:43 :: found beforescript in configuration None
2012/02/25 18:50:43 :: found psk in configuration e6[-----edited-------]0c
2012/02/25 18:50:43 :: found netmask in configuration None
2012/02/25 18:50:43 :: found key in configuration [homenetwork]
2012/02/25 18:50:43 :: found usedhcphostname in configuration 1
2012/02/25 18:50:43 :: found predisconnectscript in configuration None
2012/02/25 18:50:43 :: found enctype in configuration wpa
2012/02/25 18:50:43 :: found dns3 in configuration None
2012/02/25 18:50:43 :: found dns2 in configuration None
2012/02/25 18:50:43 :: found search_domain in configuration None
2012/02/25 18:50:43 :: found use_settings_globally in configuration False
2012/02/25 18:50:43 :: found use_static_dns in configuration False
2012/02/25 18:50:43 :: found automatic in configuration 1
2012/02/25 18:50:43 :: found dns1 in configuration None
2012/02/25 18:50:43 :: found essid in configuration [essid]
2012/02/25 18:50:43 :: found afterscript in configuration None
2012/02/25 18:50:43 :: found dhcphostname in configuration [computer name]
2012/02/25 18:50:43 :: found postdisconnectscript in configuration None
2012/02/25 18:50:43 :: found usedhcphostname in configuration False
2012/02/25 18:50:43 :: found predisconnectscript in configuration None
2012/02/25 18:50:43 :: found beforescript in configuration None
2012/02/25 18:50:43 :: found afterscript in configuration None
2012/02/25 18:50:43 :: found dhcphostname in configuration [computer name]
2012/02/25 18:50:43 :: found postdisconnectscript in configuration None
2012/02/25 18:50:43 :: found usedhcphostname in configuration False
2012/02/25 18:50:43 :: found predisconnectscript in configuration None
2012/02/25 18:50:43 :: found use_global_dns in configuration False
2012/02/25 18:50:43 :: found use_settings_globally in configuration False
2012/02/25 18:50:43 :: found use_static_dns in configuration False
2012/02/25 18:50:43 :: found beforescript in configuration None
2012/02/25 18:50:43 :: [essid] has profile
2012/02/25 18:50:43 :: trying to automatically connect to...[essid]
2012/02/25 18:50:43 :: Connecting to wireless network [essid]
2012/02/25 18:50:43 :: iwconfig wlan0
2012/02/25 18:50:43 :: /sbin/dhcpcd -k wlan0
2012/02/25 18:50:43 :: ifconfig wlan0 0.0.0.0 
2012/02/25 18:50:43 :: /sbin/ip route flush dev wlan0
2012/02/25 18:50:43 :: ifconfig wlan0 down
2012/02/25 18:50:43 :: ifconfig wlan0 up
2012/02/25 18:50:43 :: wpa_cli -i wlan0 terminate
2012/02/25 18:50:43 :: /sbin/dhcpcd -k eth0
2012/02/25 18:50:43 :: ifconfig eth0 0.0.0.0 
2012/02/25 18:50:43 :: /sbin/ip route flush dev eth0
2012/02/25 18:50:43 :: ifconfig eth0 down
2012/02/25 18:50:43 :: ifconfig eth0 up
2012/02/25 18:50:43 :: Putting interface down
2012/02/25 18:50:43 :: ifconfig wlan0 down
2012/02/25 18:50:43 :: Releasing DHCP leases...
2012/02/25 18:50:43 :: /sbin/dhcpcd -k wlan0
2012/02/25 18:50:43 :: Setting false IP...
2012/02/25 18:50:43 :: ifconfig wlan0 0.0.0.0 
2012/02/25 18:50:43 :: Stopping wpa_supplicant
2012/02/25 18:50:43 :: wpa_cli -i wlan0 terminate
2012/02/25 18:50:43 :: Flushing the routing table...
2012/02/25 18:50:43 :: /sbin/ip route flush dev wlan0
2012/02/25 18:50:43 :: iwconfig wlan0 mode managed
2012/02/25 18:50:43 :: Putting interface up...
2012/02/25 18:50:43 :: ifconfig wlan0 up
2012/02/25 18:50:45 :: enctype is wpa
2012/02/25 18:50:45 :: Generating psk...
2012/02/25 18:50:45 :: ['/usr/sbin/wpa_passphrase', '[essid]', '[pass phrase]']
2012/02/25 18:50:45 :: Attempting to authenticate...
2012/02/25 18:50:45 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/00403936bd5d', '-D', 'wext']
2012/02/25 18:50:45 :: ['iwconfig', 'wlan0', 'essid', '[essid]']
2012/02/25 18:50:45 :: iwconfig wlan0 channel 3
2012/02/25 18:50:45 :: iwconfig wlan0 ap 00:40:39:36:BD:5D
2012/02/25 18:50:45 :: WPA_CLI RESULT IS DISCONNECTED
2012/02/25 18:50:46 :: WPA_CLI RESULT IS DISCONNECTED
2012/02/25 18:50:47 :: WPA_CLI RESULT IS DISCONNECTED
2012/02/25 18:50:48 :: WPA_CLI RESULT IS DISCONNECTED
2012/02/25 18:50:48 :: wpa_supplicant rescan forced...
2012/02/25 18:50:49 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:50 :: iwconfig wlan0
2012/02/25 18:50:50 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:51 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:52 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:53 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:54 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:55 :: iwconfig wlan0
2012/02/25 18:50:55 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:57 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:58 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:50:59 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:00 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:00 :: iwconfig wlan0
2012/02/25 18:51:01 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:02 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:03 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:04 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:05 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:05 :: iwconfig wlan0
2012/02/25 18:51:06 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:07 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:08 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:09 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:10 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:10 :: iwconfig wlan0
2012/02/25 18:51:11 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:12 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:13 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:14 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:15 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:15 :: iwconfig wlan0
2012/02/25 18:51:16 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:17 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:18 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:19 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:20 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:20 :: iwconfig wlan0
2012/02/25 18:51:21 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:22 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:23 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:24 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:25 :: WPA_CLI RESULT IS SCANNING
2012/02/25 18:51:25 :: iwconfig wlan0
2012/02/25 18:51:26 :: wpa_supplicant authentication may have failed.
2012/02/25 18:51:26 :: connect result is Failed
2012/02/25 18:51:26 :: exiting connection thread
2012/02/25 18:51:30 :: Sending connection attempt result bad_pass
Is there some setting I have to change so that wpa-supplicant can deal with the iwlwifi module??

There are other wifi problems circulating on the web that people experience with the 3.2. kernels or wicd (e.g. Wicd WiFi connection fails - bad password -wpa2), but I cannot tell whether these are related to this one. Did anyone else experience this with the kernel from current and found a way around it?
Thanks.
 
Old 02-27-2012, 06:01 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
The iwlagn driver is deprecated, the site says to use iwlwifi instead.
http://intellinuxwireless.org/index.php?p=iwlwifi

Make sure you have the latest firmware for the card.

If you think wpa_supplicant is the problem you could try the git version.
 
Old 02-27-2012, 06:55 AM   #3
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 69

Original Poster
Rep: Reputation: 21
Hi, thanks for the suggestions. I just checked the git for wpa_supplicant, they seem close to releasing the next version (no 1); they are beyond rc2. I'll have to try that.

It is the iwlwifi driver that is related to the problem; with this driver (in kernel 3.2.2) I do not get encrypted connection. With the deprecated iwlagn driver from kernel 2.6.37 everything works. The latest firmware from current has been installed.
 
Old 03-31-2012, 06:34 PM   #4
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 69

Original Poster
Rep: Reputation: 21
solved....for one boot only

Installing the latest batch of upgrades in current including the kernel (3.2.13) made it all work for once (with iwlwifi as driver and wicd and wpa_supplicant untouched)
...........
On the next reboot the old hang-up returned:
wicd cannot connect and stops with "bad password".
Back to square one (and kernel 2.6.38.7).

Last edited by brobr; 04-16-2012 at 05:09 PM. Reason: problem is back
 
  


Reply

Tags
kernel 3, slackware -current, wicd, wpa


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
Wicd WiFi connection fails - bad password -wpa2 frank4360 Linux - Software 11 02-18-2012 03:52 PM
b43-fwcutter-no connection with WEP encrypted network while WPA network works blorpton Linux - Networking 6 01-25-2010 03:06 AM
[SOLVED] wicd wpa rssn6 Slackware 4 09-22-2009 02:58 PM
wifi wpa noob: which packages to install and how to setup a wpa? frenchn00b Linux - Newbie 1 12-16-2007 06:05 PM
WPA wifi connection problems. w3bd3vil Linux - Wireless Networking 2 08-13-2007 12:50 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration