Can't connect Intel N-1000 Wireless / Ubuntu 12.04
Ubuntu 12.04 custom remix with repackaged 3.5 kernel and lots of custom security. Everything looks as if it should work. I probably borked something somewhere along the way. But, it must be deep because I can't find it.
I can see wireless networks around me. When I try to connect to a secure network I just time out with no error messages and just keep auto retrying to connect forever and it keeps asking me for the password over and over again. (Yes I have verified the password is correct).
On an unsecure network I just time out with “Wireless network diconnected” message.
This same custom UB remix is working just fine on another machine with a broadcom card in it. I just had to put the right driver in it.
I'm wondering if maybe this is a group permission error? I've noticed that with the installable copy of my remix that I made with remastersys it did not set the groups up correctly when I moved to new hardware. I had to go back manually and do a lot of stuff. Did I miss something:
This is the outputs on the card:
uid=1000(adam) gid=1000(adam) groups=1000(adam),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),27(sudo),30(dip),44(video),46(plugdev),104(fuse),108(lpadmin),109(sambashare),113(netdev),122(bind),123(vboxusers),1001(jupiter),1002(bumblebee)
description: Wireless interface
product: Centrino Wireless-N 1000
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
width: 64 bits
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.5.0-23-generic firmware=220.127.116.11 build 35138 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:55 memory:f1b00000-f1b01fff
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
Shows all the wireless networks in my area.
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
eth0 no frequency information.
lo no frequency information.
wlan0 13 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 Ghz
dmesg | grep iwl
[ 21.056760] iwlwifi: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
[ 21.056763] iwlwifi: Copyright(c) 2003-2012 Intel Corporation
[ 21.056913] iwlwifi 0000:03:00.0: pci_resource_len = 0x00002000
[ 21.056915] iwlwifi 0000:03:00.0: pci_resource_base = ffffc90006864000
[ 21.056917] iwlwifi 0000:03:00.0: HW Revision ID = 0x0
[ 21.057295] iwlwifi 0000:03:00.0: irq 55 for MSI/MSI-X
[ 21.194787] iwlwifi 0000:03:00.0: loaded firmware version 18.104.22.168 build 35138
[ 21.194922] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 21.194925] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[ 21.194926] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[ 21.194928] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TESTMODE enabled
[ 21.194929] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_P2P disabled
[ 21.194931] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Wireless-N 1000 BGN, REV=0x6C
[ 21.195012] iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S
[ 21.202327] iwlwifi 0000:03:00.0: RF_KILL bit toggled to enable radio.
[ 21.216371] iwlwifi 0000:03:00.0: device EEPROM VER=0x15d, CALIB=0x6
[ 21.216375] iwlwifi 0000:03:00.0: Device SKU: 0x50
[ 21.216378] iwlwifi 0000:03:00.0: Valid Tx ant: 0x1, Valid Rx ant: 0x3
[ 21.216390] iwlwifi 0000:03:00.0: Tunable channels: 13 802.11bg, 0 802.11a channels
[ 21.220161] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 22.552363] iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S
[ 22.613239] iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S
Returns no results, which if I understand things correctly means that the wifi driver is either not installed or not loaded. But that makes absolutely no sense because if I'm reading all of the other outputs correctly it sure looks to me like the driver is working. Not only that, but, if I'm understanding things correctly this driver has been built in to the kernel since UB 11.04. Unless there's been a regression in the kernel and I need to pull and old driver forward? But I have the linux-firmware module installed and lshw shows firmware for the card.
lsmod | grep iwlagn
According to hardinfo the info I keep finding on the net is not correct and the driver is not iwlagn? According to hardinfo the driver is iwlwifi? (Unless the wrong module is getting load for some reason?)
The router does not label modes as b,g or n., but rather lists by speeds. So I set it to the lowest (54 Mbps). And the wireless access list is set to accept connections from this machines MAC. I've also made sure the password is correct.
lsmod | grep iwlwifi
iwlwifi 399651 0
mac80211 555198 1 iwlwifi
cfg80211 208382 2 iwlwifi,mac80211
Arpon is set to:
and does not effect the other machine from connecting.
DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -d"
so there's only a matched pair for the wired connection and not the wireless. I think that has to do with the card and not ArpOn.
? (192.168.1.1) at XX:XX:XX:XX:XX:XX [ether] PERM on eth0
I can connect to both the wired router connection and my subscription service remote VPN tunnel secured proxy with no issues. VM NAT networking is working fine. So it has to be some thing with the wireless card.
Maybe it's an apparmor issue? I'm using the utils set of profiles. Which are not the same as the default profiles. But, the other machine works fine with them. I have AA set to complain. I've gotten no messages and there's nothing in the logs that stands out to me.
I can't see anything in portsentry that should be affecting the wireless card being able to connect and the other machine works fine with it as is.
NetworkManager.conf is pretty straight forward:
“#no-auto-default=XX:XX:XX:XX:XX:XX, ” is set by ArpOn with the MAC of the machine I originally built this remix on. I commented it out when I moved to new hardware. ArpOn should be regenerating the same parameter with the new MAC, but is not.
On further research the driver for this card was changed from iwlagn to iwlwifi in kernel 3.2 and people have been having problems with it running super slow due to a problem with the default parameters in the driver. I figured maybe that was stopping me from making a connection before I timed out. So I tried this fix from the web:
That didn't work either.
echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlwifi
sudo modprobe iwlwifi
This card is supposed to work OOB since UB 11.04 (which IIRC, used kernel 2.6, which should mean that it should use the older iwlagn driver.)
Just for poops and giggles I tried to unload the new driver module and load the old driver module (just in case it was still in linux-firmware):
Which didn't throw any error messages. It also didn't work either.
sudo modprobe -r iwlwifi
sudo modprobe iwlagn
I'm still learning and I saw on one fix as I searched that they updated initramfs after monkeying with modprobe:
and rebooted, which did nothing.
sudo update-initramfs -u
I've looked around the web and I cannot find a stand alone download for the old module (iwlagn).
I'm completely out of ideas at this point. I'll keep digging. But help would be greatly appreciated.
BTW, this is an Optimus machine. I had to hack it 97 ways to Sunday to get video working properly. A big part of that was making my own remix from a minimal / command line install. I may have left something out without realizing it. After lots of experimenting I solved the video issues by including the 3.5 kernel in my build. I really don't want to roll back to an old kernel as that will open a whole new can of worms. This machine is plugged in to a TV and I've pretty much turned it in to a desktop. But, I wanted to take it with me the other day only to find the wireless card won't connect to anything even though I'll be damned if I can figure out why.