After a long time I want to connect to LAN via WiFi network and it failed. However I am able to set up the connection in gentoo-sources-2.6.32-gentoo-r7. In higher version (tested with 2.6.33) I can't make wlan0 interface functional. I am using the iwl4965 driver and net-wireless/iwl4965-ucode-228.61.2.24 in all these kernel versions. Of course I've reemerged the iwl4965-ucode in newer kernel. Reproducible: Always Steps to Reproduce: 1. Boot kernel higher than 2.6.32 2. Load all necessary modules (modprobe iwl4965 especially) 3. ifconfig wlan0 up 4. iwlist wlan0 scanning; dhcpcd wlan0; ... everything using the wlan0 interface Actual Results: iwlist wlan0 scanning doesn't work, dhcpcd wlan0 doesn't work etc. It is not possible to set connection. Expected Results: iwlist wlan0 scanning should display information about wireless network (as it does in 2.6.32), dhcpcd wlan0 should receive an IP address There is a part of /var/log/messages from 2.6.32-gentoo-r7: 2.6.32-gentoo-r7 ================ Oct 15 21:06:47 usambara kernel: iwlagn 0000:04:00.0: firmware: requesting iwlwifi-4965-2.ucode Oct 15 21:06:47 usambara kernel: iwlagn 0000:04:00.0: loaded firmware version 228.61.2.24 Oct 15 21:06:48 usambara kernel: Registered led device: iwl-phy0::radio Oct 15 21:06:48 usambara kernel: Registered led device: iwl-phy0::assoc Oct 15 21:06:48 usambara kernel: Registered led device: iwl-phy0::RX Oct 15 21:06:48 usambara kernel: Registered led device: iwl-phy0::TX Oct 15 21:06:50 usambara kernel: wlan0: direct probe to AP 00:0b:6b:2c:2e:31 (try 1) Oct 15 21:06:50 usambara kernel: wlan0: direct probe responded Oct 15 21:06:50 usambara kernel: wlan0: authenticate with AP 00:0b:6b:2c:2e:31 (try 1) Oct 15 21:06:50 usambara kernel: wlan0: authenticated Oct 15 21:06:50 usambara kernel: wlan0: associate with AP 00:0b:6b:2c:2e:31 (try 1) Oct 15 21:06:50 usambara kernel: wlan0: RX AssocResp from 00:0b:6b:2c:2e:31 (capab=0x421 status=0 aid=11) Oct 15 21:06:50 usambara kernel: wlan0: associated Oct 15 21:06:51 usambara dhcpcd[3819]: wlan0: dhcpcd 4.0.15 starting Oct 15 21:06:51 usambara dhcpcd[3819]: wlan0: broadcasting for a lease Oct 15 21:06:51 usambara dhcpcd[3819]: wlan0: offered 10.129.99.202 from 10.129.99.193 Oct 15 21:07:03 usambara dhcpcd[3819]: wlan0: acknowledged 10.129.99.202 from 10.129.99.193 Oct 15 21:07:03 usambara dhcpcd[3819]: wlan0: checking 10.129.99.202 is available on attached networks Oct 15 21:07:08 usambara dhcpcd[3819]: wlan0: leased 10.129.99.202 for 300 seconds And here is a similar output from 2.6.34-gentoo-r11: 2.6.34-gentoo-r11 ================= Oct 15 21:19:22 usambara kernel: iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:d Oct 15 21:19:22 usambara kernel: iwlagn: Copyright(c) 2003-2010 Intel Corporation Oct 15 21:19:22 usambara kernel: iwlagn 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 Oct 15 21:19:22 usambara kernel: iwlagn 0000:04:00.0: setting latency timer to 64 Oct 15 21:19:22 usambara kernel: iwlagn 0000:04:00.0: Detected Intel Wireless WiFi Link 4965AGN REV=0x4 Oct 15 21:19:22 usambara kernel: sdhci-pci 0000:08:06.1: SDHCI controller found [1180:0822] (rev 19) Oct 15 21:19:22 usambara kernel: sdhci-pci 0000:08:06.1: PCI INT B -> GSI 23 (level, low) -> IRQ 23 Oct 15 21:19:22 usambara kernel: sdhci-pci 0000:08:06.1: Will use DMA mode even though HW doesn't fully claim to support it. Oct 15 21:19:22 usambara kernel: Registered led device: mmc0:: Oct 15 21:19:22 usambara kernel: mmc0: SDHCI controller on PCI [0000:08:06.1] using DMA Oct 15 21:19:22 usambara kernel: iwlagn 0000:04:00.0: Tunable channels: 13 802.11bg, 19 802.11a channels Oct 15 21:19:22 usambara kernel: iwlagn 0000:04:00.0: firmware: requesting iwlwifi-4965-2.ucode Oct 15 21:19:22 usambara kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Oct 15 21:19:22 usambara kernel: iwlagn 0000:04:00.0: loaded firmware version 228.61.2.24 Oct 15 21:19:22 usambara kernel: nvidia: module license 'NVIDIA' taints kernel. Oct 15 21:19:22 usambara kernel: Disabling lock debugging due to kernel taint Oct 15 21:19:22 usambara kernel: usb 1-4: new high speed USB device using ehci_hcd and address 3 Oct 15 21:19:22 usambara kernel: nvidia 0000:01:00.0: power state changed by ACPI to D0 Oct 15 21:19:22 usambara kernel: nvidia 0000:01:00.0: power state changed by ACPI to D0 Oct 15 21:19:22 usambara kernel: nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 Oct 15 21:19:22 usambara kernel: nvidia 0000:01:00.0: setting latency timer to 64 Oct 15 21:19:22 usambara kernel: vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem Oct 15 21:19:22 usambara kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 195.36.31 Thu Jun 3 08:19:50 PDT 2010 Oct 15 21:19:22 usambara kernel: usb 4-1: new full speed USB device using uhci_hcd and address 2 Oct 15 21:19:22 usambara kernel: Linux video capture interface: v2.00 Oct 15 21:19:22 usambara kernel: uvcvideo: Found UVC 1.00 device USB 2.0 Camera (04f2:b013) Oct 15 21:19:22 usambara kernel: input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/input/input5 Oct 15 21:19:22 usambara kernel: usbcore: registered new interface driver uvcvideo Oct 15 21:19:22 usambara kernel: USB Video Class driver (v0.1.0) Oct 15 21:19:22 usambara kernel: phy0: Selected rate control algorithm 'iwl-agn-rs'
Created attachment 250751 [details] Modules loaded in 2.6.32 Here is a list of modules loaded in 2.6.32. It is sorted for better reading
Created attachment 250753 [details] Modules loaded in 2.6.34 Here is a list of modules loaded in 2.6.34. It is sorted for better reading
And some additional info from 2.6.34 # iwconfig wlan0 wlan0 no wireless extensions. # iwlist wlan0 scanning wlan0 Interface doesn't support scanning. # LC_ALL="C" ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:13:e8:a5:6b:a3 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) # lspci 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c) 00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) 00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03) 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03) 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03) 01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1) 04:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61) 08:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller 08:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19) 08:06.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a) 08:06.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
Just a note: I've tested the latest Sabayon Linux 5.3 (~amd64) live CD and wifi connection doesn't work either. But now I'm trying latest Ubuntu 10.10 (64b) and it is working! Output from /var/log/messages in Ubuntu: Oct 16 19:44:24 ubuntu kernel: [ 17.497525] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree: Oct 16 19:44:24 ubuntu kernel: [ 17.497529] iwlagn: Copyright(c) 2003-2010 Intel Corporation Oct 16 19:44:24 ubuntu kernel: [ 17.497620] iwlagn 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 Oct 16 19:44:24 ubuntu kernel: [ 17.497668] iwlagn 0000:04:00.0: Detected Intel(R) Wireless WiFi Link 4965AGN, REV=0x4 Oct 16 19:44:24 ubuntu kernel: [ 17.511733] Bluetooth: Core ver 2.15 Oct 16 19:44:24 ubuntu kernel: [ 17.511784] NET: Registered protocol family 31 Oct 16 19:44:24 ubuntu kernel: [ 17.511786] Bluetooth: HCI device and connection manager initialized Oct 16 19:44:24 ubuntu kernel: [ 17.511789] Bluetooth: HCI socket layer initialized Oct 16 19:44:24 ubuntu kernel: [ 17.536496] iwlagn 0000:04:00.0: Tunable channels: 13 802.11bg, 19 802.11a channels Oct 16 19:44:24 ubuntu kernel: [ 17.553733] Linux video capture interface: v2.00 Oct 16 19:44:24 ubuntu kernel: [ 17.565211] Bluetooth: Generic Bluetooth USB driver ver 0.6 Oct 16 19:44:24 ubuntu kernel: [ 17.585581] usbcore: registered new interface driver btusb Oct 16 19:44:24 ubuntu kernel: [ 17.588121] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (04f2:b013) Oct 16 19:44:24 ubuntu kernel: [ 17.594344] input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/input/input6 Oct 16 19:44:24 ubuntu kernel: [ 17.594418] usbcore: registered new interface driver uvcvideo Oct 16 19:44:24 ubuntu kernel: [ 17.594420] USB Video Class driver (v0.1.0) Oct 16 19:44:25 ubuntu kernel: [ 17.721445] iwlagn 0000:04:00.0: loaded firmware version 228.61.2.24 $ lsmod |grep iwl iwlagn 202721 0 iwlcore 146875 1 iwlagn mac80211 266657 2 iwlagn,iwlcore cfg80211 170293 3 iwlagn,iwlcore,mac80211
You have misconfigured something in your kernel, the module works fine, I have used it with every version from .32 to .36 without a single problem. Please ensure your udev rules are correct.
# iwconfig wlan0 wlan0 no wireless extensions. That is expected. iwlagn uses nl80211 now. Use net-wireless/iw, or enable wireless extension compatibility in your kernel if you want to stay with wireless-tools. Also ensure that rfkill is set up properly.
(In reply to comment #5) > You have misconfigured something in your kernel, the module works fine, I have > used it with every version from .32 to .36 without a single problem. Please > ensure your udev rules are correct. I think udev is set up correctly. I can find this lines in /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x8086:0x4230 (iwlagn) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:e8:a5:6b:a3", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0" (In reply to comment #6) > # iwconfig wlan0 > wlan0 no wireless extensions. > That is expected. iwlagn uses nl80211 now. Use net-wireless/iw, or enable > wireless extension compatibility in your kernel if you want to stay with > wireless-tools. > Also ensure that rfkill is set up properly. Thanks for hint. There is no CONFIG_WIRELESS_EXT in my config file (not event commented lines), so I think it's not supported in new kernels. I can find CONFIG_WIRELESS_EXT in 2.6.32 config. I hope I'll find something how to set up the iwlagn driver, I can't find anything useful in Gentoo documentation.
Finally I've solved the problem. I've recompiled kernel with "cfg80211 wireless extensions compatibility" enabled and it started working.