You are not logged in.

#1 2012-02-10 21:39:09

squagels
Member
Registered: 2012-02-10
Posts: 10

Cannot connect to wireless

I cannot connect to my wireless network, and have followed the wiki exactly.  I'm a complete newbie to this, so hopefully I'm missing something simple.  Here's my info...

iwconfig:

wlan0
IEEE 802.11abgn ESSID:off/any
Mode:Managed AccessPoint: Not-Associated Tx-Power=15 dBm
Retry long limit: 7 RTS thr: off Fragment thr:off
Encryption key: off
Power Management: off

network profile:

CONNECTION='wireless'
DESCRIPTION='Connection to network at home.'
INTERFACE='wlan0'
SECURITY='wep'
ESSID='LCLG7'
KEY='...'
IP='dhcp'

netcfg debugging:

DEBUG: Loading profile lclg7
DEBUG: Configuring interface wlan0
:: lclg7 up
DEBUG: status reported to profile_up as:
DEBUG: Loading profile lclg7
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up start_wpa wlan0 /run/network//wpa.wlan0/wpa.conf n180211,wext
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up Configuration generated at /run/network//wpa.wlan0/wpa.conf
DEBUG: wireless_up ifup
DEBUG: wireless_up start_wpa wlan0 /run/network//wpa.wlan0/wpa.conf n180211,wext
DEBUG: wireless_up wpa_check
DEBUG: wpa_cli -p /run/wpa_supplicant -i wlan0 status

> WPA Authentication/Association Failed
DEBUG: profile_up connect failed

Last edited by squagels (2012-02-11 00:14:44)

Offline

#2 2012-02-10 22:52:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Cannot connect to wireless

Are you able to connect manually?

Offline

#3 2012-02-10 22:53:56

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

I've had no luck doing it manually either.

Offline

#4 2012-02-10 23:42:20

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

With manual setup, I can associate my access point and wireless device as shown with # iwconfig wlan0:

wlan0
IEEE 802.11abgn ESSID:"LCLG7"
Mode:Managed AccessPoint: Not-Associated Tx-Power=15 dBm
Retry long limit: 7 RTS thr: off Fragment thr:off
Encryption key:****-****-**
Power Management: off

But when I try to run # dhcpcd wlan0, it goes nowhere:

dhcpcd[823]: version 5.2.12 starting
dhcpcd[823]: wlan0: waiting for carrier
dhcpcd[823]: timed out

Offline

#5 2012-02-10 23:51:03

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Cannot connect to wireless

Which wireless card (lspci -nn)? Do you get a 30s hang at boot? If yes: https://bbs.archlinux.org/viewtopic.php?id=134012

Offline

#6 2012-02-11 00:07:42

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

Wireless card is:
02:00.0 Network controller [0280]: Intel Corporation WiFi Link 5100 [8086:4232]

And I do get a long hang at boot (during 'Starting Network'), so I added my wireless card's driver (iwlagn) to modules as that thread suggested, but it didn't fix anything.

Offline

#7 2012-02-11 00:26:17

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Cannot connect to wireless

The driver is now named iwlwifi, not iwlagn. Also, you're not getting the hang that thread describes (that thread describes an udev hang, and iwlwifi is one of the few driver not having that issue). You're probably hitting a bug in the driver, the workaround is disabling hardware encryption - in /etc/modprobe.d/modprobe.conf

option iwlwifi swcrypto=1

(and if this post looks similar to some other post I made recently... well, there seems to be an epidemic of not working hardware encryption in several drivers recently smile)

Last edited by Gusar (2012-02-11 00:34:18)

Offline

#8 2012-02-11 00:53:31

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

Ok, so I tried the other fix from that thread (https://bbs.archlinux.org/viewtopic.php … 5#p1046225), and dhcpcd still timed out.

I also tried disabling hardware encryption as you suggested, and the option line is being ignored (says it's a bad line).  Maybe I did this wrong?

Last edited by squagels (2012-02-11 00:57:03)

Offline

#9 2012-02-11 01:00:29

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Cannot connect to wireless

If you did what I said, it's wrong, yeah smile. My mistake. It should be

options iwlwifi swcrypto=1

Last edited by Gusar (2012-02-11 01:00:51)

Offline

#10 2012-02-11 01:16:46

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

I'm now getting the error message that the module is not found.

To clarify, here's everything I've done:

Added to /etc/modprobe.d/modprobe.conf:

blacklist iwlwifi
options iwlwifi swcrypto=1

Added to /etc/rc.conf:

/sbin/modprobe iwlwifi

Ran:

# iwconfig wlan0 essid "LCLG7" key "********"
# dhcpcd wlan0
dhcpcd[851]: version 5.2.12 starting
dhcpcd[851]: wlan0: waiting for carrier
dhcpcd[851]: timed out
#

Last edited by squagels (2012-02-11 02:40:42)

Offline

#11 2012-02-11 03:37:32

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,143

Re: Cannot connect to wireless

I think it is not found because you have blacklisted it...

Shouldn't you add the module to the modules array in rc.conf rather than calling modprobe manually in there?

If you are following instructions from somebody else, ignore mine. I don't know about this particular issue. That just doesn't look right...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#12 2012-02-11 04:45:15

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

It turns out that I misread Gusar's earlier post regarding a fix for a problem describing an udev hang and yes, those lines should not be there.  However, even with iwlwifi in my MODULES in /etc/rc.conf, I still cannot get dhcpcd to be a success.  These are now what my files look like:

Added to /etc/modprobe.d/modprobe.conf (as per Gusar's suggestion):

options iwlwifi swcrypto=1

Added to /etc/rc.conf:

MODULES=(iwlwifi)

Ran:

# iwconfig wlan0 essid "LCLG7" key "********"
# dhcpcd wlan0
dhcpcd[851]: version 5.2.12 starting
dhcpcd[851]: wlan0: waiting for carrier
dhcpcd[851]: timed out
#

I should also note that while booting, the "Loading Modules" part reports a failure.  I also have the linux-firmware package installed (according to https://wiki.archlinux.org/index.php/Wi … 000-series my driver is part of this package).  Is there something I'm missing to get the iwlwifi driver to load?

Offline

#13 2012-02-11 10:49:46

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Cannot connect to wireless

Please state the error you see for the module. Also, if you manually rmmod and load it again (with the option), you still get an error?

Another thing: In your post #4 you say the manual association worked, but in fact it has not worked according to the output ("not associated"). So its clear the dhcp wont work after. You may want to watch out for that in your tests.
If it does not work manually, perhaps your wpa_supplicant conf just has an error.

Offline

#14 2012-02-11 19:57:59

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

When I'm booting up, everything passes with a "done", except for "Loading Modules" which comes up as "fail".  Running rmmod simply says that the module does not exist in /proc/modules. 

Earlier I had thought that my system was using the iwlagn driver, but Gusar corrected me and said that the driver is now iwlwifi:

The driver is now named iwlwifi, not iwlagn.

So which one do I use?  And if it's iwlwifi, how do I get that module to load?

In that earlier post, I only thought that the association worked because the output showed the SSID and encryption key.

Offline

#15 2012-02-11 20:29:10

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Cannot connect to wireless

squagels wrote:

When I'm booting up, everything passes with a "done", except for "Loading Modules" which comes up as "fail".

That could be unrelated to wireless. What's your MODULES array in /etc/rc.conf?

squagels wrote:

And if it's iwlwifi, how do I get that module to load?

It should load automatically, no configuration required.

Check with lsmod that the module is loaded. If it is, check dmesg for any error messages related to wireless. If it isn't, modprobe it and check dmesg for any error messages. If there aren't any, connect to wireless, but do not run dhcpcd yet. First check with iwconfig that you're actually connected ("Access Point:" should give an address instead of saying "Not-Associated"). Only after you have a wireless connection do you run dhcpcd.

Offline

#16 2012-02-11 20:34:29

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

MODULES only has one module - iwlwifi. 

lsmod shows iwlagn and not iwlwifi. 

modprobe gives me a "FATAL: Module iwlwifi not found." error message.

Last edited by squagels (2012-02-11 20:35:21)

Offline

#17 2012-02-11 20:37:13

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Cannot connect to wireless

You must be using some old kernel then. So first thing: fully update your machine. Could be you're using an outdated mirror, so check that.

Offline

#18 2012-02-11 21:08:01

squagels
Member
Registered: 2012-02-10
Posts: 10

Re: Cannot connect to wireless

Ok, full update done and am now running the iwlwifi driver, and can finally connect to my wireless and get a successful ping.  Turns out after all that, I just needed to update the system.  Dumb, dumb, me.

Thank you so much for all the help!

Last edited by squagels (2012-02-11 21:08:15)

Offline

#19 2012-06-01 10:25:19

pan
Member
From: Slovenia
Registered: 2012-05-31
Posts: 47

Re: Cannot connect to wireless

[Problem Solved]

Last edited by pan (2012-06-01 20:05:14)

Offline

Board footer

Powered by FluxBB