[Mageia-dev] kernel problem with wifi rfkill?

Colin Guthrie mageia at colin.guthr.ie
Thu Apr 21 11:56:37 CEST 2011


Hiya,

Since the last little while (I think since kernel 2.6.38) the rfkill
switch on my laptop doesn't work too well.

I can turn the machine on with wireless (+bluetooth) enabled and if I
hit the rfkill switch (Fn+F2 on my machine) both wifi and bt turn off as
they should.

If I turn it back on again however, both of the lights turn on briefly
but then the wifi one goes out and bt follows shortly thereafter. The
only way I can find to get wifi back is to reboot or:

[root at jimmy ~]# rmmod btusb
[root at jimmy ~]# rmmod bluetooth
[root at jimmy ~]# rmmod dell_laptop
[root at jimmy ~]# rmmod iwlagn
[root at jimmy ~]# rmmod iwlcore
[root at jimmy ~]# rmmod mac80211
[root at jimmy ~]# rmmod cfg80211
[root at jimmy ~]# rmmod rfkill
[root at jimmy ~]# lsmod | grep rfk
<press button to enable>
[root at jimmy ~]# modprobe iwlagn



When I disable the radio dmesg says this:


iwlagn 0000:0b:00.0: RF_KILL bit toggled to disable radio.
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_QOS_PARAM: enqueue_hcmd failed: -5
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_RXON: enqueue_hcmd failed: -5
iwlagn 0000:0b:00.0: Error setting new RXON (-5)
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_RXON_ASSOC: enqueue_hcmd failed: -5
wlan0: deauthenticating from 1c:af:f7:1a:bc:6e by local choice (reason=3)
keyboard: can't emulate rawmode for keycode 240
keyboard: can't emulate rawmode for keycode 240
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_REMOVE_STA: enqueue_hcmd failed: -5
iwlagn 0000:0b:00.0: Error removing station 1c:af:f7:1a:bc:6e
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_RXON_ASSOC: enqueue_hcmd failed: -5
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_RXON: enqueue_hcmd failed: -5
iwlagn 0000:0b:00.0: Error setting new RXON (-5)
cfg80211: Calling CRDA to update world regulatory domain
iwlagn 0000:0b:00.0: Not sending command - RF KILL
iwlagn 0000:0b:00.0: Error sending REPLY_RXON: enqueue_hcmd failed: -5
iwlagn 0000:0b:00.0: Error setting new RXON (-5)
iwlagn 0000:0b:00.0: Failing on timeout while stopping DMA channel 1
[0xa5a5a5a2]
iwlagn 0000:0b:00.0: Failing on timeout while stopping DMA channel 3
[0xa5a5a5a2]
iwlagn 0000:0b:00.0: Failing on timeout while stopping DMA channel 4
[0xa5a5a5a2]
iwlagn 0000:0b:00.0: Failing on timeout while stopping DMA channel 6
[0xa5a5a5a2]
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain,
max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usb 5-2: USB disconnect, address 5
btusb_intr_complete: hci0 urb ffff8800286416c0 failed to resubmit (19)
btusb_bulk_complete: hci0 urb ffff880028641f00 failed to resubmit (19)
btusb_bulk_complete: hci0 urb ffff8800286419c0 failed to resubmit (19)
btusb_send_frame: hci0 urb ffff88009a8ffe40 submission failed


When I enable it again (and it fails) it says this:
iwlagn 0000:0b:00.0: RF_KILL bit toggled to enable radio.
keyboard: can't emulate rawmode for keycode 240
keyboard: can't emulate rawmode for keycode 240
usb 5-2: new full speed USB device using uhci_hcd and address 6
usb 5-2: New USB device found, idVendor=413c, idProduct=8126
usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-2: Product: BCM2045
usb 5-2: Manufacturer: Broadcom Corp
iwlagn 0000:0b:00.0: RF_KILL bit toggled to disable radio.
usb 5-2: USB disconnect, address 6
iwlagn 0000:0b:00.0: START_ALIVE timeout after 4000ms.


Note that this is *without* pressing it wtiwce as the log's indicate -
it's almost like the keypress is being detected twice enable/disable. or
somethig (or the iwlagn driver somehow redisabled it after activation?)

After pressing the button a third time (to disable the radio again
(after the failed activation)) all I get is:

keyboard: can't emulate rawmode for keycode 240
keyboard: can't emulate rawmode for keycode 240


So I'm a little stumped.

Anyone else get this problem?

iwlagn          : Intel Corporation|PRO/Wireless 4965 AG or AGN [Kedron]
Network Connection [NETWORK_OTHER] (vendor:8086 device:4229 subv:8086
subd:1101) (rev: 61)



I found this which seems like a likely candidate for a fix...
http://ns.spinics.net/lists/linux-wireless/msg64176.html

but it's from February... is it really not in the .38.x kernel yet??


Col

-- 

Colin Guthrie
mageia(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]


More information about the Mageia-dev mailing list