After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674681 - NetworkManager 0.9.4 breaks wl broadcom driver
NetworkManager 0.9.4 breaks wl broadcom driver
Status: RESOLVED NOTGNOME
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal critical
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2012-04-24 00:27 UTC by Marcelo
Modified: 2012-04-26 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcelo 2012-04-24 00:27:39 UTC
After upgrading nm to 0.9.4 the wl broadcom driver stopped working with nm (it works well with wpa_supplicant + dhcpd)

Here is the log


Apr 23 21:12:43 localhost NetworkManager[659]: <info> Networking is enabled by state file
Apr 23 21:12:43 localhost NetworkManager[659]: <warn> failed to allocate link cache: (-10) Operation not supported
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): driver 'wl' does not support carrier detection.
Apr 23 21:12:43 localhost NetworkManager[659]: <error> [1335226363.697424] [nm-device-ethernet.c:456] real_update_permanent_hw_address(): (eth0): unable to read permanent MAC address (error 0)
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): new Ethernet device (driver: 'wl' ifindex: 2)
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): now managed
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): bringing up device.
Apr 23 21:12:43 localhost NetworkManager[659]: nm_netlink_monitor_get_flags_sync: assertion `self != NULL' failed
Apr 23 21:12:43 localhost NetworkManager[659]: <warn> (eth0): couldn't get carrier state: (-1) unknown
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): carrier now OFF (device state 20, deferring action for 4 seconds)
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): preparing device.
Apr 23 21:12:43 localhost NetworkManager[659]: <info> (eth0): deactivating device (reason 'managed') [2]
Comment 1 Dan Williams 2012-04-24 21:42:47 UTC
What distro is this?  NM 0.9.4 allows builders to disable WEXT, which is probably what's happening here.  But WEXT is enabled by default, so packagers/builders have to explicitly pass --without-wext or --with-wext=no at configure time to make this happen.
Comment 2 Dan Williams 2012-04-24 21:45:01 UTC
ie, this might be a dupe of bug 674650
Comment 3 Marcelo 2012-04-24 22:47:09 UTC
Hi,

I think wext works well since I use this option in the wpa_supplicant command line when using iwconfig, wpa_supplicant and dhcpd

I'm using ArchLinux
Comment 4 Dan Williams 2012-04-25 22:00:26 UTC
(In reply to comment #3)
> Hi,
> 
> I think wext works well since I use this option in the wpa_supplicant command
> line when using iwconfig, wpa_supplicant and dhcpd
> 
> I'm using ArchLinux

Right, but we need to make sure NetworkManager is built to allow WEXT too.  Otherwise it'll detect the Broadcom driver as wired, because the broadcom driver uses the deprecated WEXT API instead of the kernel's preferred nl80211 API.  And if NM detects it as a wired device, then obviously it's not going to work as a wifi device.
Comment 5 Marcelo 2012-04-26 00:14:09 UTC
I see now,

Archlinux seems to be built with wext support
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/networkmanager
Comment 6 Dan Williams 2012-04-26 15:12:17 UTC
(In reply to comment #5)
> I see now,
> 
> Archlinux seems to be built with wext support
> https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/networkmanager

Yeah, it seems to be.  Would you mind reconfirming that your local build has WEXT enabled by rebuilding it, at least up until it starts compiling stuff, and then grab the 'config.h' file from the build directory?  We're looking for HAVE_WEXT or WITH_WEXT in that file.
Comment 7 Marcelo 2012-04-26 18:05:35 UTC
Hi,

thanks for your help.
Appears that ArchLinux build had the --no-wext flag and it was removed now due to another bug.

This was a distro mistake.

Regards,
Marcelo
Comment 8 Dan Williams 2012-04-26 18:36:24 UTC
No problem; thanks for the report.