On 09-15 09:42, Stanislaw Gruszka wrote: > On Wed, Sep 14, 2011 at 12:22:40PM -0500, Dan Williams wrote: > > On Wed, 2011-09-14 at 16:47 +0200, Stanislaw Gruszka wrote: > > > This fix regression introduced by: > > > > > > commit: ecb4433550f0620f3d1471ae7099037ede30a91e > > > Author: Stanislaw Gruszka <sgruszka@xxxxxxxxxx> > > > Date: Fri Aug 12 14:00:59 2011 +0200 > > > > > > mac80211: fix suspend/resume races with unregister hw > > > > > > Above commit add rtnl_lock() into wiphy_register(), what cause deadlock > > > when initializing ipw2x00 driver, which itself call wiphy_register() > > > from register_netdev() internal callback with rtnl mutex taken. > > > > > > To fix move wiphy_register() outside register_netdev(). This solution > > > have side effect of not creating /sys/class/net/wlanX/phy80211 link, > > > but that's a minor issue we can live with. > > > > Unfortunately that path is one of the ways that programs distinguish > > wifi devices from plain ethernet devices. The other way is to poke it > > with WEXT. Should poking it with nl80211 be added to the mix instead? > > Not sure, maybe device/ieee80211/phy0 could be used? > > [stasiu@dhcp-27-172 ~]$ readlink -f /sys/class/net/wlan0/phy80211 > /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0 > [stasiu@dhcp-27-172 ~]$ readlink -f /sys/class/net/wlan0/device/ieee80211/phy0 > /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0 I conifrm that (with patch applied) /sys/class/net/eth1/device/ieee80211/phy0 does exist (both ieee80211 and phy0 are real directories not symlinks, only eth1 -> ../../devices/pci0000:00/0000:00:1e.0/0000:0b:02.0/net/eth1, and device -> ../../../0000:0b:02.0 are symlinks), only .../eth1/phy80211 symlinks is missing. I am using NetworkManafer 0.9.0-1 and do not have any visible problems now. Regards, Witek -- Witold Baryluk
Attachment:
signature.asc
Description: Digital signature