You are not logged in.

#1 2009-04-09 19:03:39

paulingham
Member
Registered: 2009-03-23
Posts: 12

Can't scan or connect to WPA network since kernel upgrade

Hi guys,

I upgraded to kernel 2.6.29 earlier today and have been having trouble with scanning and connecting to WPA encrypted networks since. I'm stuck with a wired connection for the minute, but I can't have the wire going through the house for so long otherwise somebody will trip over it - probably me.

I usually use netcfg to connect to the network, but since the update that has failed.

My network called is a Belkin USB Wireless G, model number F5D705ed version 5000ed. It worked perfectly fine on 2.6.28 using the rtl8187 native drivers.

dmesg output for 2.6.29

usbcore: registered new interface driver rtl8187
rtl8187: 8187B chip detected.
wmaster0 (rtl8187): not using net_device_ops yet
wlan0 (rtl8187): not using net_device_ops yet
phy0: hwaddr 00:1c:df:47:44:c0, RTL8187BvE V0 + rtl8225z2

I can start the card up using

sudo ifconfig wlan0 up

When I attempt to scan for a wireless network, I get

sudo iwlist wlan0 scan
wlan0     No scan results

The network is WPA, and would scan fine on 2.6.28.

wpa_supplicant.conf looks like this

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="Arazmataz"
        psk="*****************"
        priority=5
}

I should note though, that since the update - /var/run/wpa_supplicant seems to have disappeared.

network.d/profile looks like

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="Arazmataz"
GATEWAY="192.168.1.1"
KEY="**************"
IP="dhcp"
IWCONFIG="rate 54M"
TIMEOUT=120

dhcpcd times out also and netcfg fails to connect. Going back to WEP seems to work ok.

iwconfig

wlan0     IEEE 802.11bg  ESSID:""  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=20 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Please help!

Thanks.

Last edited by paulingham (2009-04-09 19:04:23)

Offline

#2 2009-04-09 22:07:57

VuDu
Member
Registered: 2007-05-11
Posts: 95

Re: Can't scan or connect to WPA network since kernel upgrade

I'm having the same problem with the -Syu made moments ago.

wlan0 seems to be working fine but it doesn't detect my WPA2 network.

I have an Intel Wireless 5100AGN.


EDIT:

Removed security of the wireless network and it's the same... It doesn't find any network (it's only in the range of my router, so I can't test with other routers).
I also have this message on dmesg:

wlan0 (iwlagn): not using net_device_ops yet

Last edited by VuDu (2009-04-09 22:20:13)

Offline

#3 2009-04-09 22:54:35

paulingham
Member
Registered: 2009-03-23
Posts: 12

Re: Can't scan or connect to WPA network since kernel upgrade

http://www.archlinux.org/pipermail/arch … 04370.html

Seems this issue is cropping up in various places - another one on the mailing list above.

Offline

#4 2009-04-10 11:36:20

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: Can't scan or connect to WPA network since kernel upgrade

I had the same problem, but installing crda (as it says on the mailing list) and uncommenting my regulatory domain (as it says after the install) solved if for me.

Offline

#5 2009-04-10 11:55:30

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Can't scan or connect to WPA network since kernel upgrade

So everyone whose issue is NOT solved by installing crda and configuring it, please raise your hand (paulingham, I guess you will be one of them).

Offline

#6 2009-04-10 12:55:33

VuDu
Member
Registered: 2007-05-11
Posts: 95

Re: Can't scan or connect to WPA network since kernel upgrade

I managed to connect to my older ASUS WL-520g router (802.11bg only).
If I turn the ASUS on, it will detect both networks (both without encryption) but it only connects to the ASUS.
The other one, on a Belkin F5D8233-4 (802.11agn) is detected only when ASUS is on but I still can't connect to its wifi network.

I'll try the crda thing now...

Last edited by VuDu (2009-04-10 12:58:07)

Offline

#7 2009-04-10 13:20:49

VuDu
Member
Registered: 2007-05-11
Posts: 95

Re: Can't scan or connect to WPA network since kernel upgrade

Ok, the problem seems to no longer exist with crda installed and /etc/conf.d/wireless-regdom configured. smile

Offline

#8 2009-04-10 14:28:02

paulingham
Member
Registered: 2009-03-23
Posts: 12

Re: Can't scan or connect to WPA network since kernel upgrade

brain0 wrote:

So everyone whose issue is NOT solved by installing crda and configuring it, please raise your hand (paulingham, I guess you will be one of them).

*raises hand*

I've made some progress though - but still can't connect. I can now scan for a network though.

/etc/conf.d/wireless-regdom

WIRELESS_REGDOM="GB"

/var/run/wpa_supplicant still didn't exist, so I created a /var/run/wpa_supplicant folder - and saw a few success messages in the log. This allowed me to bring the card up again and scan for a network.

At this point, I was getting excited until netcfg2 still kept telling me that it couldn't associate with the network.

I installed wicd and gave that a go and got the following. I did a 'tail -f /var/log/wicd/wicd.log' and got this;

2009/04/10 15:17:10 :: Connecting to wireless network Arazmataz
2009/04/10 15:17:10 :: Putting interface down
2009/04/10 15:17:10 :: ifconfig wlan0 down
2009/04/10 15:17:10 :: Releasing DHCP leases...
2009/04/10 15:17:10 :: Setting false IP...
2009/04/10 15:17:10 :: ifconfig wlan0 0.0.0.0
2009/04/10 15:17:14 :: ifconfig eth0 0.0.0.0
2009/04/10 15:17:14 :: Stopping wpa_supplicant and any DHCP clients
2009/04/10 15:17:14 :: killall wpa_supplicant
2009/04/10 15:17:14 :: iwconfig wlan0
2009/04/10 15:17:14 :: Flushing the routing table...
2009/04/10 15:17:14 ::  route del dev wlan0iwconfig wlan0
2009/04/10 15:17:14 ::
2009/04/10 15:17:14 :: route del dev eth0
2009/04/10 15:17:14 :: Generating psk...
2009/04/10 15:17:14 :: ['/usr/sbin/wpa_passphrase', 'Arazmataz', 'key commented out here']
2009/04/10 15:17:14 :: Attempting to authenticate...
2009/04/10 15:17:14 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c',
'/var/lib/wicd/configurations/001b11ada667', '-D', 'wext']
2009/04/10 15:17:14 :: iwconfig wlan0
2009/04/10 15:17:14 :: Putting interface up...
2009/04/10 15:17:14 :: ifconfig wlan0 up
2009/04/10 15:17:18 :: iwconfig wlan0 mode managed
2009/04/10 15:17:18 :: ['iwconfig', 'wlan0', 'essid', 'Arazmataz', 'channel', '6', 'ap',
'00:1B:11:AD:A6:67']
2009/04/10 15:17:18 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:19 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:20 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:21 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:22 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:23 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:24 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:25 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:26 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:27 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:28 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:29 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:30 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:31 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:32 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:33 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:34 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:35 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:36 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:37 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:38 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:39 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:40 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:41 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:42 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:43 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:44 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:45 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:46 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:47 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:48 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:49 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:50 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:51 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:52 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:53 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:54 :: WPA_CLI RESULT IS SCANNING
2009/04/10 15:17:55 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:56 :: WPA_CLI RESULT IS ASSOCIATED
2009/04/10 15:17:57 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/04/10 15:17:58 :: wpa_supplicant authentication may have failed.
2009/04/10 15:17:58 :: exiting connection thread

I checked the password multiple times, and it is what it is supposed to be. Still no luck connecting.

Offline

#9 2009-04-11 01:10:47

lyman
Member
From: China
Registered: 2008-01-13
Posts: 21
Website

Re: Can't scan or connect to WPA network since kernel upgrade

brain0 wrote:

So everyone whose issue is NOT solved by installing crda and configuring it, please raise your hand (paulingham, I guess you will be one of them).

+1, I tried crda last night, no luck, back to .28 now. Mine is using ath9k.


arch x86_64 on Dell E7450

Offline

#10 2009-04-11 02:05:17

uncholowapo
Member
From: US
Registered: 2009-03-29
Posts: 238

Re: Can't scan or connect to WPA network since kernel upgrade

Installing crda solves the problem for a WEP connection on my computer using the same module with my RTL8187B wireless adapter in my Toshiba Satellite L45.

Offline

#11 2009-04-11 13:13:22

paulingham
Member
Registered: 2009-03-23
Posts: 12

Re: Can't scan or connect to WPA network since kernel upgrade

Bump.

brain0: Any other suggestions we can try?

Offline

#12 2009-04-11 21:57:05

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Can't scan or connect to WPA network since kernel upgrade

I am clueless on this one right now. I'd need some more info from lyman right now, to see if you're both having the same problem. Maybe some logs from running wpa_supplicant with the -dd option.

Offline

#13 2009-04-15 03:06:15

jdb
Member
Registered: 2008-11-10
Posts: 3

Re: Can't scan or connect to WPA network since kernel upgrade

My wlan0 wouldn't come up after the last upgrade & wpa_supplicant wasn't running,
/var/run/wpa_suppplicant didn't exist.

The entry in my /etc/conf.d/wpa_supplicant file was:

WPA_SUPPLICANT-ARGS="-Bw -iwlan0 -c/etc/wpasupplicant.conf

It turns out -w is no longer a legal option so wpa_supplicant wasn't starting.

I changed it to:

WPA_SUPPLICANT-ARGS="-B -iwlan0 -c/etc/wpasupplicant.conf

and all is good now.

jdb

Offline

#14 2009-04-15 18:54:41

paulingham
Member
Registered: 2009-03-23
Posts: 12

Re: Can't scan or connect to WPA network since kernel upgrade

Okay this is weird.

I just stuck a broadcom 4318 card in the PCI slot, it failed to even ping the router or anything remote despite it having an IP address etc in 2.6.28. I then upgraded to 2.6.29 using this new broadcom 4318 card and the problem from the original post has now gone, wpa supplicant starts no problem and the card works fine.

So the question is, why do some cards not work well in 2.6.28 and work well in .29 and vice versa? Could it be an issue with the rtl8187 drivers?

Offline

#15 2009-04-24 07:49:08

Zolas
Member
From: Denmark
Registered: 2009-03-16
Posts: 61

Re: Can't scan or connect to WPA network since kernel upgrade

I must raise my hand as well, unfortunately. I have tried installing crda after which I'm, occasionally, able to connect to the network, however my computer will lose its link after a while - quite annoying. Any suggestions would be immensely appreciated.

/Zolas

Offline

Board footer

Powered by FluxBB