LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   No WPA encrypted wifi connection with kernel 3.2.2 via Wicd (http://www.linuxquestions.org/questions/slackware-14/no-wpa-encrypted-wifi-connection-with-kernel-3-2-2-via-wicd-931280/)

brobr 02-25-2012 03:41 PM

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.

H_TeXMeX_H 02-27-2012 05:01 AM

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.

brobr 02-27-2012 05:55 AM

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.

brobr 03-31-2012 05:34 PM

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).


All times are GMT -5. The time now is 03:53 AM.