Bug 785393 - rt2500pci wifi does not work on kernel 3.2.2-1
Summary: rt2500pci wifi does not work on kernel 3.2.2-1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 16
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: John W. Linville
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 785386 785502 785510 785533 786713 786935 786952 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-28 15:57 UTC by Tomáš Trnka
Modified: 2012-02-09 21:14 UTC (History)
21 users (show)

Fixed In Version: kernel-3.2.3-2.fc16
Clone Of:
Environment:
Last Closed: 2012-02-06 15:34:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg from the broken 3.2.2-1 (56.06 KB, text/plain)
2012-01-29 15:32 UTC, Tomáš Trnka
no flags Details
dmesg from vanilla 3.3-rc1 (64.17 KB, text/plain)
2012-01-29 15:37 UTC, Tomáš Trnka
no flags Details
/var/log/messages from a working kernel (137.85 KB, text/plain)
2012-01-29 19:08 UTC, Gareth Jones
no flags Details
/var/log/messages from the broken kernel (122.88 KB, text/plain)
2012-01-29 19:09 UTC, Gareth Jones
no flags Details
Working eeprom_93cx6.ko from compat-wireless-3.3-rc1 (428.68 KB, application/x-object)
2012-01-30 09:10 UTC, Tomáš Trnka
no flags Details

Description Tomáš Trnka 2012-01-28 15:57:27 UTC
Description of problem:
My WLAN card stopped working after updating kernel to 3.2.2-1. It seems not to be receiving any packets (monitor mode doesn't show anything incoming, not even beacons). Manually started scan using "iw wlan0 scan" also fails to find any networks (and only the transmitted probes are visible using monitor). No errors are reported via dmesg.

Switching to 3.2.1-3 makes the card work fine again.

I will test vanilla 3.2.2 and probably also a bisect between 3.2.1 and 3.2.2. Any advice on how to get detailed debugging output from the driver would be really welcome (as it is, everything seems fine except for frames not going in).

Version-Release number of selected component (if applicable):
kernel-3.2.2-1.fc16

How reproducible:
Every boot to 3.2.2 exhibits this.

Comment 1 Tomáš Trnka 2012-01-28 19:32:45 UTC
Vanilla 3.2.2 (with the config from kernel-3.2.2-1.fc16 but disabling unneeded modules) works fine.

Comment 2 Josh Boyer 2012-01-28 21:39:42 UTC
(In reply to comment #1)
> Vanilla 3.2.2 (with the config from kernel-3.2.2-1.fc16 but disabling unneeded
> modules) works fine.

Fedora 3.2.2 is using the compat-wireless stuff from 3.3-rc1.

Comment 3 MaxiPunkt 2012-01-29 11:56:55 UTC
Same here:

# lspci | grep -i network
00:09.0 Network controller: Ralink corp. RT2500 802.11g (rev 01)

Booting with old kernels, everything is fine.
Booting new kernel (kernel-PAE-3.2.2-1.fc16.i686) => no wifi-connection:

Comment 4 Tomáš Trnka 2012-01-29 15:30:30 UTC
(In reply to comment #2)
> Fedora 3.2.2 is using the compat-wireless stuff from 3.3-rc1.

Thanks for the hint. I've tested vanilla 3.3-rc1 and that one works fine, too. I tried to build kernel-3.2.2-1 --without backports, but ran out of diskspace building all the modules. If there is a way to bisect the fedora-modified kernel  without having to run a full-blown RPM build (that takes several hours here), I'd be glad to give it a try. Or if anyone could possibly build the RPM for me (a scratch build?), that would be nice, too.

Comment 5 Tomáš Trnka 2012-01-29 15:32:01 UTC
Created attachment 558174 [details]
dmesg from the broken 3.2.2-1

Comment 6 Tomáš Trnka 2012-01-29 15:37:48 UTC
Created attachment 558175 [details]
dmesg from vanilla 3.3-rc1

This kernel has several wlan-related debug options enabled, so it reports

wlan0: detected beacon loss from AP - sending probe request

(these messages are printed exactly one second apart, but several are missing). Could this be somehow related to the bug?

Comment 7 Tomáš Trnka 2012-01-29 16:32:31 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > Fedora 3.2.2 is using the compat-wireless stuff from 3.3-rc1.
> 
> Thanks for the hint. I've tested vanilla 3.3-rc1 and that one works fine, too.
> I tried to build kernel-3.2.2-1 --without backports, but ran out of diskspace
> building all the modules.

I tried this the other way around and compiled compat-wireless-3.3-rc1-2 for 3.2.1-3. The WiFi is working fine, so compat-wireless definitely is not the culprit. Now how just to find out which of those many Fedora patches is responsible.

Comment 8 Gareth Jones 2012-01-29 19:02:54 UTC
This has bitten me also.  No error messages, but no connection and no networks found.

The only messages in /var/log/messages that refer to rt2500, wlan0 or NetworkManager are:
kernel: [   18.622372] rt2500pci 0000:07:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
...
[   22.342192] ADDRCONF(NETDEV_UP): wlan0: link is not ready
...
NetworkManager[1263]: (NetworkManager:1263): GLib-GIO-WARNING **: Missing callback called fullpath = /var/run/ConsoleKit/database

I'll attach the full log.

Gareth

Comment 9 Gareth Jones 2012-01-29 19:08:34 UTC
Created attachment 558204 [details]
/var/log/messages from a working kernel

Comment 10 Gareth Jones 2012-01-29 19:09:17 UTC
Created attachment 558205 [details]
/var/log/messages from the broken kernel

Comment 11 Stanislaw Gruszka 2012-01-30 07:37:15 UTC
Looks like NetworkManager has problems to detect device, perhaps there are some race condition during start? Is there any difference between iwconfig and ifconfig on broken and good kernel? Does NM detect device if you restart it ("systemctl stop NetworkManager.service" and "systemctl start NetworkManager.service") ?

Comment 12 Stanislaw Gruszka 2012-01-30 07:45:17 UTC
(In reply to comment #7)
> I tried this the other way around and compiled compat-wireless-3.3-rc1-2 for
> 3.2.1-3. The WiFi is working fine, so compat-wireless definitely is not the
> culprit. Now how just to find out which of those many Fedora patches is
> responsible.

We apply these patches on compat-wireless:
> ApplyPatch compat-wireless-config-fixups.patch
> ApplyPatch compat-wireless-pr_fmt-warning-avoidance.patch
> ApplyPatch compat-wireless-rtl8192cu-Fix-WARNING-on-suspend-resume.patch
> ApplyPatch mac80211-fix-work-removal-on-deauth-request.patch
> ApplyPatch b43-add-option-to-avoid-duplicating-device-support-w.patch

Only one suspicious is "mac80211-fix-work-removal-on-deauth-request.patch".
Tomáš, can you apply it on vanilla compat-wireless-3.3-rc1-2.tar.bz2, recompile, and check if it broke wireless?

Comment 13 Tomáš Trnka 2012-01-30 09:06:12 UTC
(In reply to comment #11)
> Looks like NetworkManager has problems to detect device, perhaps there are some
> race condition during start? Is there any difference between iwconfig and
> ifconfig on broken and good kernel? Does NM detect device if you restart it
> ("systemctl stop NetworkManager.service" and "systemctl start
> NetworkManager.service") ?

I doubt this is NM related. Restarting NM doesn't fix anything and the problem exhibits itself by no packets coming in, so a simple "iw wlan0 scan" doesn't work on the broken kernel no matter how the interface got activated.

(In reply to comment #12)
> Only one suspicious is "mac80211-fix-work-removal-on-deauth-request.patch".
> Tomáš, can you apply it on vanilla compat-wireless-3.3-rc1-2.tar.bz2,
> recompile, and check if it broke wireless?

I did and to my great disappointment, wireless kept working with that patch. However, I found out that by changing the priorities in /etc/depmod.d/dist.conf and running modprobe -rv rt2500pci && modprobe -v rt2500pci, I can switch back and forth between the broken state (backports/ modules) and working wlan (updates/ modules - my compat-wireless build).

After extensive module juggling, I've pinpointed the problem to drivers/misc/eeprom/eeprom_93cx6.ko. Placing just my compat-wireless version to /lib/modules/3.2.2-1.fc16.x86_64/updates/drivers/misc/eeprom/eeprom_93cx6.ko the wireless starts working (with the rest of modules kept original).

Note that the RPM doesn't ship the compat-wireless version of this module in backports/ and the original 3.2.2 one in kernel/ is used instead. Could this be just some incompatibility between the 3.2.2 EEPROM driver and the 3.3-rc1 wlan stack?

Comment 14 Tomáš Trnka 2012-01-30 09:10:42 UTC
Created attachment 558293 [details]
Working eeprom_93cx6.ko from compat-wireless-3.3-rc1

This is the module that fixed it for me (x86_64).

Gareth, could you place this into /lib/modules/3.2.2-1.fc16.x86_64/updates/drivers/misc/eeprom/eeprom_93cx6.ko, run depmod and see whether your wifi starts working after module reload/reboot?

Comment 15 Stanislaw Gruszka 2012-01-30 09:55:05 UTC
Thanks Tomáš! So problem is that our build-in kernel compat-wireless does not properly install eeprom_93cx6.ko into /lib/modules/`uname -r`/backports/

Comment 16 Gareth Jones 2012-01-30 12:26:35 UTC
Thanks indeed Tomáš!  Yes, your eeprom module fixes it.

Comment 17 John W. Linville 2012-01-30 15:03:35 UTC
*** Bug 785386 has been marked as a duplicate of this bug. ***

Comment 18 John W. Linville 2012-01-30 15:48:41 UTC
I made the required change -- I guess the eeprcom_93cx6 API changed along the
way.  Anyway, the next f16 build should address this.

Comment 19 Thomas Arnold 2012-01-30 16:46:26 UTC
Will F15 i386 get the fix for my Eee PC 901? Same issues.

Comment 20 John W. Linville 2012-01-30 17:48:07 UTC
F15 doesn't have compat-wireless integrated, so whatever promise you (i.e. Thomas Arnold) are seeing is something different.  Please open a separate bug for that specific issue.

Comment 21 Thomas Arnold 2012-01-30 18:13:05 UTC
Great, I already did that but it was marked as duplicate of this one: 
https://bugzilla.redhat.com/show_bug.cgi?id=785510

Comment 22 Josh Boyer 2012-01-30 18:29:14 UTC
(In reply to comment #21)
> Great, I already did that but it was marked as duplicate of this one: 
> https://bugzilla.redhat.com/show_bug.cgi?id=785510

That bug is reported with an F16 kernel.  I'm not sure why you think it's an F15 bug report?  If you're installing F16 kernels by hand on an F15 userspace, it's still an F16 problem.

Comment 23 Josh Boyer 2012-01-30 18:29:57 UTC
*** Bug 785510 has been marked as a duplicate of this bug. ***

Comment 24 John W. Linville 2012-01-30 19:04:01 UTC
OK, given that then you (i.e. Thomas Arnold) will just need to install the updated f16 kernel when it becomes available...

Comment 25 Stanislaw Gruszka 2012-02-01 15:41:21 UTC
*** Bug 785502 has been marked as a duplicate of this bug. ***

Comment 26 bob mckay 2012-02-02 08:07:30 UTC
Just a note (mainly for indexing purposes) that I am seeing identical var/log/messages traces in machines with rt2500 and rt2800 cards, so I think it is likely to be the same bug.

Comment 27 Rui Mota 2012-02-02 09:40:51 UTC
In my case in ASUS EEEPC 1000H no wi-fi cards are detected.

Comment 28 Josh Boyer 2012-02-02 14:03:03 UTC
*** Bug 786713 has been marked as a duplicate of this bug. ***

Comment 29 Stanislaw Gruszka 2012-02-02 18:41:04 UTC
*** Bug 786935 has been marked as a duplicate of this bug. ***

Comment 30 Stanislaw Gruszka 2012-02-02 19:45:44 UTC
*** Bug 785533 has been marked as a duplicate of this bug. ***

Comment 31 Josh Boyer 2012-02-02 21:03:30 UTC
*** Bug 786952 has been marked as a duplicate of this bug. ***

Comment 32 Thomas Arnold 2012-02-06 09:38:00 UTC
New kernel fixed this bug for me.

Comment 33 MaxiPunkt 2012-02-06 18:17:09 UTC
Same with my system - kernel 3.2.3 does work for me.

Thank you!

Comment 34 Rui Mota 2012-02-07 01:39:09 UTC
My EEEPC 1000H is alright now with this new kernel.
Please don't repeat that joke. 
For moments I thought my board got broken.

Thank you!

Comment 35 Ken 2012-02-09 18:15:05 UTC
I installed 3.2.3-2.fc16.i686 and I am unable to connect to my wireless card. The card detects my router, however despite having the correct WEP Key entered, my machine does not authenticate and will not establish a connection. Is this related to the problem outlined above, or is it a separate issue?

Comment 36 Rui Mota 2012-02-09 21:14:20 UTC
It seems a different description. In this bug the card was not detected. Your case it detects but you're not able to connect. right?
I suggest you to delete your wi-fi connection. Press ALT-F2 to get to the run dialog and type nm-connection-editor, delete the non-working connection and try to register again.
If it does not work, well it may be a bug, so open a new ticket.


Note You need to log in before you can comment on or make changes to this bug.