Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279104 - networkmanager-0.7.1-r6 + hal-0.5.13-r2 + gentoo-sources-2.6.30-r[34] + b43
Summary: networkmanager-0.7.1-r6 + hal-0.5.13-r2 + gentoo-sources-2.6.30-r[34] + b43
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 277944
  Show dependency tree
 
Reported: 2009-07-25 20:51 UTC by Alexandre Ferreira
Modified: 2009-08-25 09:17 UTC (History)
4 users (show)

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


Attachments
This patch sarches for the grandparents for subsystems of ssb type (Networkmanager-ssb.patch,1.11 KB, patch)
2009-07-25 20:59 UTC, Alexandre Ferreira
Details | Diff
Patch that disables the assertion (my_patch_2.patch,845 bytes, patch)
2009-08-05 18:16 UTC, Alex HeadHunter Pyattaev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Ferreira 2009-07-25 20:51:52 UTC
When using the wireless b43, networkmanager fails with "nm_device_wifi_new: assertion `driver != NULL' failed" and does not present the wlan0 interface to use.
My analysis show that networkmanager is failing because it is trying to get the driver name from the parent of the device (at HAL) but the information is at the grandparent.
Comment 1 Alexandre Ferreira 2009-07-25 20:59:57 UTC
Created attachment 199167 [details, diff]
This patch sarches for the grandparents for subsystems of ssb type

I do not know if this patch affects other systems. It works on a b43 equipped machine and do not harm a iwlagn machine.
Comment 2 Robert Piasek (RETIRED) gentoo-dev 2009-07-29 12:06:03 UTC
Could you please provide some more logs? I've got b43 wifi card, and it works like a charm with NM-0.7.1 and 2.6.30

Comment 3 Grey Vicious 2009-07-29 19:37:39 UTC
(In reply to comment #2)
> Could you please provide some more logs? I've got b43 wifi card, and it works
> like a charm with NM-0.7.1 and 2.6.30
> 

Got the same problem, same versions. It's HAL dependent. Reverting to 0.5.12_rc1-r7 fixes problem. Patch should work too.
Comment 4 Alex HeadHunter Pyattaev 2009-08-05 18:16:42 UTC
Created attachment 200278 [details, diff]
Patch that disables the assertion

OK, I can tell definitely that it is a bug in HAL, namely libhal. In fact, if you check lshal, you will see that the driver is detected by HAL and is present. However, libhal request made by NM tells that the  key does not exist, which is not true. It is a bug, but it is in the HAL package itself, not in gentoo or NM or Kernel, or ssb system. I've filed a bug to freedesktop: http://bugs.freedesktop.org/show_bug.cgi?id=23114, so you can check the progress there. For now you could try to manually disable the check in NM code.The patch is attached, have a look.
My HW is b43 WIFI on pci-e bus, AMD64.
You can add the patch while building from source manually, it is not THAT big=)
Comment 5 Alex HeadHunter Pyattaev 2009-08-05 18:20:05 UTC
(In reply to comment #4)

> My HW is b43 WIFI on pci-e bus, AMD64.
BTW, is not your hardware tx2000 series laptop by hp? Probably it is platform-related after all. This could help those guys at freedesktop.
Comment 6 Alexandre Ferreira 2009-08-05 19:15:17 UTC
It is similar to the tx2000, but it is a ZV6000 HP laptop.

(In reply to comment #5)
> (In reply to comment #4)
> 
> > My HW is b43 WIFI on pci-e bus, AMD64.
> BTW, is not your hardware tx2000 series laptop by hp? Probably it is
> platform-related after all. This could help those guys at freedesktop.
> 

Comment 7 Dolores 2009-08-06 13:24:41 UTC
My platform: Dell D630
Comment 8 Alex HeadHunter Pyattaev 2009-08-07 10:37:55 UTC
OK people. Have you ever seen wmaster interface at iwconfig or somthing like that? 
NM decides that it is the only wireless device, so it uses its HAL udi and gets out empty with driver name (maybe wmaster is not supposed to have driver). So, it is a problem in a way NM looks for wireless adapters. I do not know yet how to fix this.
Any ideas?
PS: I've closed libhal-related bug at freedesktop, it was invalid.
Comment 9 Alexandre Ferreira 2009-08-07 13:38:56 UTC
There is a wmaster interface but my debugging show that NM ignores it and uses the wlan0 interface. I do not know why but HAL now says that wlan0 has a ssb subsystem and the grandparent of wlan0 is the one that have the driver interface filled. 
Comment 10 Alex HeadHunter Pyattaev 2009-08-07 20:59:02 UTC
(In reply to comment #9)
> There is a wmaster interface but my debugging show that NM ignores it and uses
> the wlan0 interface. I do not know why but HAL now says that wlan0 has a ssb
> subsystem and the grandparent of wlan0 is the one that have the driver
> interface filled. 
> 

Then probably your patch works fine=) Hope it gets included into the ebuild soon.
Comment 11 Robert Piasek (RETIRED) gentoo-dev 2009-08-14 14:50:12 UTC
Upstream submitted proper fix for this bug few minutes ago. You can expect backports over the weekend.

Comment 12 Robert Piasek (RETIRED) gentoo-dev 2009-08-25 09:17:41 UTC
That's should be now fixed in 0.7.1_p20090824

Please re-open this ticket if problem is still there.