Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218565 - kernel 2.6.25, iwl4965, 1.2.23kds: SIOCSIFFLAGS not found
Summary: kernel 2.6.25, iwl4965, 1.2.23kds: SIOCSIFFLAGS not found
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-20 12:45 UTC by Michał Kudła
Modified: 2009-08-05 07:16 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Kudła 2008-04-20 12:45:12 UTC
I compiled kernel 2.6.25 with iwl4965. But it not work for me and I don't know
why.


laptok ~ # dmesg
iwl4965: Intel(R) Wireless WiFi Link 4965AGN driver for Linux, 1.2.23kds
iwl4965: Copyright(c) 2003-2007 Intel Corporation
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:04:00.0 to 64
iwl4965: Detected Intel Wireless WiFi Link 4965AGN
iwl4965: Tunable channels: 13 802.11bg, 19 802.11a channels
phy0: Selected rate control algorithm 'iwl-4965-rs'
ACPI: PCI interrupt for device 0000:04:00.0 disabled

<cut/>

wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:06:00:35
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:06:00:35
wlan0: RX authentication from 00:01:e3:06:00:35 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:01:e3:06:00:35
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
ACPI: PCI interrupt for device 0000:04:00.0 disabled

laptok ~ # ifconfig wlan0 up
SIOCSIFFLAGS: Nie ma takiego urządzenia

laptok ~ # zcat /proc/config.gz     
#
# Wireless LAN
#
# CONFIG_WLAN_PRE80211 is not set
CONFIG_WLAN_80211=y
CONFIG_IWL4965=y
CONFIG_IWL4965_QOS=y
CONFIG_IWL4965_HT=y
CONFIG_IWL4965_SPECTRUM_MEASUREMENT=y
CONFIG_IWL4965_SENSITIVITY=y
CONFIG_IWL4965_DEBUG=y

laptok ~ # lspci
04:00.0 Network controller: Intel Corporation Unknown device 4229 (rev 61)

My config:
Laptop Asus S96S, SantaRosa, NVidia 8600GS
laptok ~ # uname -a
Linux laptok 2.6.25-gentoo-r1 #7 SMP Sun Apr 20 14:01:58 CEST 2008 i686
Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux

Reproducible: Always
Comment 1 Michał Kudła 2008-04-20 12:45:53 UTC
laptok ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.6.1-r0, 2.6.25-gentoo-r1 i686)
=================================================================
System uname: 2.6.25-gentoo-r1 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
Timestamp of tree: Sat, 19 Apr 2008 16:33:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.17-r1, 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -mtune=generic -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -mtune=generic -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl pl_PL"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/java-overlay /usr/portage/local/layman/postgresql-testing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib accessibility acl acpi addbookmarks additions agg aio alias alsa amr amrnb amrwb apache2 arts avahi bash-completion berkdb bigpatch binary-drivers blender-game bluetooth branding bzip2 cairo caps cdda cddb cdr cli connectionstatus contactnotes cracklib crypt css cups curl cvs cygnal daap dbus dc1394 dga dhcp directfb disk-partition divx doc dri dts dv dvb dvd dvdnav dvdr dvdread ecc emboss enca encode epydoc evo expat fam fb fbcon ffmpeg firefox flac fltk fontconfig fortran fpx ftp gd gdbm geos gif gimp glitz gnokii gnutls gpac gphoto2 gpm graphviz gs gsm gstreamer gtk gtkhtml guile hal hdri highlight history htmlhandbook httpd ical iconv id3 id3tag idea ieee1394 imagemagick imap imlib ipw4965 isdnlog jabber jack jai java java5 javacomm javamail javascript jbig jce jingle jmf jms jmx jpeg jpeg2k jpgraph jython kcal kde kdepim kerberos keyring konqueror ladspa lame lcms ldap libnotify libsamplerate libvisual lm_sensors log4j logrotate lzo mad matroska mbrola mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mod modplug mozdevelop mp3 mp4 mp4live mpeg mpeg2 mpi mplayer mudflap multicall multislot multiuser musepack musicbrainz mysql mysqli ncurses neon nls nptl nptlonly nsplugin ntfs nvram obex odk ogg openal openexr opengl openmp pam pango parallel parse-clocks pcmcia pcre pda pdf perl php plotutils png postgres povray pppd proj python q32 q8 qt3 qt3support qt4 quicktime rar readline real realmedia reflection rhino rle rtc rtsp samba sasl script sdl sensord servlet-2_4 servletapi session skins smp sms sndfile sound soundtouch soup sox speech speex spell spl sql sqlite srt sse sse2 ssl ssse3 statistics stream subversion svg svnserve swig syslog tcl tcpd teamarena tga theora threads threadsafe tiff timidity tivo tools tordns truetype unicode upnp urandom usb v4l v4l2 vcd visualization vlm vorbis wavpack webdav wifi win32codecs winbind wmf wmp x264 x86 xanim xforms xine xml xorg xosd xpm xprint xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl pl_PL" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 rick vernam 2008-04-22 17:36:43 UTC
same symptoms, although running amd64.
Comment 3 Michał Kudła 2008-05-09 19:27:34 UTC
gentoo-sources not works too
laptok ~ # dmesg | grep -E "(iwl)|(4965)"
iwl4965: Intel(R) Wireless WiFi Link 4965AGN driver for Linux, 1.2.23kds
iwl4965: Copyright(c) 2003-2007 Intel Corporation
iwl4965: Detected Intel Wireless WiFi Link 4965AGN
iwl4965: Tunable channels: 13 802.11bg, 19 802.11a channels
phy0: Selected rate control algorithm 'iwl-4965-rs'
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
iwl4965: WARNING: Requesting MAC access during RFKILL wakes up NIC
Comment 4 Brian Johnson 2008-05-15 10:20:20 UTC
Welcome to the club guys.

Couple things you might wanna try here.

Boot with "noapic" in the kernel command.

Also, create /etc/modules.d/iwl4965 and try playing with the following options:

options iwl4965 hwcrypto=1 disable_hw_scan=1

I have been playing with various kernels, including 2.6.26 (although I'm back to 2.6.25 due to various instability issues). Still had the same problem.
Comment 5 Michał Kudła 2008-06-17 13:08:29 UTC
http://lkml.org/lkml/2008/6/5/373

laptok ~ # echo 0 > /sys/bus/pci/drivers/iwl4965/0000\:04\:00.0/rf_kill
laptok ~ # iwconfig wlan0 txpower on
laptok ~ # /etc/init.d/net.wlan0 restart

And it's works!

Why I have to run this two line (0>rf_kill and txpower on) before wifi starts?
Comment 6 Morgan GERMAIN 2008-07-17 09:01:19 UTC
why is this bug reported for x86 ? I have the same issue on amd64. Is there anyone with the same problem on 32bit arch ?
Comment 7 Benjamin Schulz 2008-07-27 05:45:38 UTC
I have this problem too. In 25 and recent 26 kernels.

Unfortunately, none of the resolutions posted here worked for me. I have a Lenovo thinkpad T61.

It seems for me, that, during startup, the driver wakes up and searches for avaiable connections. It these are not there, it falls into sleep forever and one cannot wake it up.
Comment 8 Łukasz Śliwa 2008-07-29 08:39:35 UTC
I have the same problem on compal fl90 with kernel 2.6.24-gentoo-r8, 2.6.25-gentoo-r6 and 2.6.26. My architecture is ~amd64. On 2.6.25-r6:

# /etc/init.d/net.wlan0 restart
SIOCSIFFLAGS: No such device
SIOCSIFFLAGS: No such device
SIOCSIFFLAGS: No such device
* Wireless radio has been killed for interface wlan0

# dmesg | grep 'iwl'
iwl4965: Intel(R) Wireless WiFi Link 4965AGN driver for Linux, 1.2.23kds
iwl4965: Copyright(c) 2003-2007 Intel Corporation
iwl4965: Detected Intel Wireless WiFi Link 4965AGN
iwl4965: Tunable channels: 13 802.11bg, 19 802.11a channels
phy0: Selected rate control algorithm 'iwl-4965-rs'
iwl4965: Radio disabled by HW RF Kill switch
iwl4965: Radio disabled by HW RF Kill switch
iwl4965: Radio disabled by HW RF Kill switch
iwl4965: Radio disabled by HW RF Kill switch
iwl4965: Radio disabled by HW RF Kill switch
iwl4965: Radio disabled by HW RF Kill switch

# lsmod
Module                  Size  Used by
... 
iwl4965               197876  0 
...

mac80211 is build-in.

# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:""  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key: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

When I checked 'iwlist wlan0 scan', I got an 'non-supported scanning' message. The similar error I've got on ndiswrapper with 64-bits drivers.
Comment 9 Benjamin Schulz 2008-08-06 22:52:56 UTC
It seems that intel got aware of this problem:

http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1657

And fixed it, as others say (i have not tried it yet, since I would have to compile a new kernel and I'm lazy these days).

The new drivers are stored by intel in a project called compat-wireless 

http://linuxwireless.org/

However, it seems that till now, gentoo has no officially ebuild for this project.

To ask the developers, if they would provide an ebuild for these wlan drivers, I filed a new Bug at:

http://bugs.gentoo.org/show_bug.cgi?id=234139

Hopefully, there's an ebuild soon...
Comment 10 Łukasz Śliwa 2008-08-07 11:17:51 UTC
I tried a new compat-wireless and have the same problem what I've had before. On kernel-2.6.25-r6 I had some warnings in dmesg, like "iwl4965: Unknown symbol ..." - problem was with mac80211 which hasn't one function: '__ieee80211'. So I compiled kernel-2.6.25-r7. Problem with mac80211 disappeared, but output in dmesg is the same I putted above. Can someone to confirm? I don't known it's my mistake? 
Comment 11 Benjamin Schulz 2008-08-07 14:33:34 UTC
I think one should write, that this problem is better suited for the intel bugzilla:
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1657

so, I think the bug there should be reopened...
Comment 12 Adam 2008-08-07 16:01:33 UTC
Lukasz, the HW RF Kill Switch is likely something that is enabled in the BIOS of your machine that disables your WIFI.

I was having similar (but not identical) issues with the iwl3945 driver on my Dell E1505 laptop. While investigating that issue, I played around with the BIOS, specifically with regard to WIFI, and confirmed that disabling it in BIOS resulted in the "HW RF Kill Switch" message you are seeing.

I am using the vanilla-sources as of 2.5 weeks ago (I think that means 2.26.25-r6) along with the intel-compat package version ~07/28/08 (mentioned above). After installing the modules from intel-compat my WIFI has worked like a charm. I would post the pertinent portions of my kernel's .config file, but I don't have access to it at the moment.

Perhaps this is an iwl4965 problem only, but I would suggest checking those issues.
Comment 13 Łukasz Śliwa 2008-08-11 12:50:53 UTC
Ok, I tried to change my wifi slot in laptop and... intel 4965agn works fine on one of two slots... strange thing. It looks like intel 4965agn is dedicated (?) wifi-card on Compals FL90. Some users of intel 4965agn on Compal FL90 have the same problem.

Now, iwl4965 from kernel-2.6.25-r7 works great after three weeks... - it was a battle.
Comment 14 Michal Špondr 2008-08-16 15:37:45 UTC
I've updated to latest net-wireless/iwl4965-ucode-228.57.1.21 version of firmware drivers and it still doesn't work. However the net-wireless/iwl4965-ucode-228.57.2.21 seems to be better (see bug 231485): it doesn't return the "SIOCSIFFLAGS" message, but I still can't receive any IP address from DHCP server. I am using kernel 2.6.25.9 on amd64 platform.
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2008-08-18 22:57:25 UTC
I do have the same problem with 4229 card ( using iwl4269 driver ) on amd64 gentoo with 2.6.26 kernel

This trick

laptok ~ # echo 0 > /sys/bus/pci/drivers/iwl4965/0000\:04\:00.0/rf_kill
laptok ~ # iwconfig wlan0 txpower on
laptok ~ # /etc/init.d/net.wlan0 restart

Is deprecated now since there is an in-kernel option for this one on 2.6.26 but still doesnt work

Have you found any solution yet?

Is there an ebuild for intel-compat driver?

Thanks
Comment 16 Brian Johnson 2008-08-18 23:13:50 UTC
All,

I'm afraid this wont be resolved upstream until the following two Intel bugzilla bugs are closed:

http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1700

http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1657

wireless-compat may resolve the issue. upgrading to 2.6.27 may also resolve the issue, but no official word from Intel yet. These issues are also apparent on iwl3945. So any related Gentoo bugs should about these similar issues are likely related.
Comment 17 Markos Chandras (RETIRED) gentoo-dev 2008-09-08 10:36:44 UTC
On 2.6.26 the RF_Kill option is included in kernels' configuration. 
Comment 18 Benjamin Schulz 2008-09-08 10:45:04 UTC
with the newest firmware (which is masked) and the compat wireless drivers  http://linuxwireless.org/en/users/Download

I now have success to get the card working on a 2.6.25-gentoo-r7 Kernel.

I do not know if there are problems with 2.6.26 or 2.6.27 kernels. Maybe there are.
Comment 19 Alex Dubenetsky 2008-09-16 09:16:08 UTC
Have a look
http://forums.gentoo.org/viewtopic-t-707893.html

I need to add - I'd experienced with both problems reported here before playing with timeouts. (Couldn't connect & occasional disconnect.)

-alexdu
Comment 20 Pacho Ramos gentoo-dev 2009-02-06 12:00:10 UTC
At least with kernel-2.6.28 this seems to work ok for me
Comment 21 shade 2009-08-04 20:37:07 UTC
I think this bug can be closed. iwl4965 works fine since 2.6.29. Rf kill works fine on 2.6.30 and quite good on 2.6.29.

I want to ask if someone menaged to test N links, and can say about resoult? I have teted it on wrt160N but i can get only 60Mb/s on linux, and about 3x more on vista.