Thats fantastic: I wasn't expecting a patch, just a push in the right  
direction.  You've given a huge push.

> Ok; does it show up in HAL?  Run 'hal-device-manager' and look around
> for your card.  There needs to also be a "WLAN Interface" object that's
> a child of the actual PCI/USB card.  The "WLAN Interface" object needs
> to have the "net.80211" capability in its info.capabilities list.  It
> also needs to have a "net.interface" property.
>
> The driver is likely not showing up because it has no SET_NETDEV_DEV()
> call when it sets up its netdevice, which means that the right device
> links aren't set up in sysfs.  Each separate hardware-specific file
> (rt2500pci.c, rt2400pci.c, rt2500usb.c) needs to have the
> SET_NETDEV_DEV() command added.  Try the attached patch, and if that
> works, please send it upstream to the rt2x00 maintainers.
>

I modified your patch slightly and got it to compile and now its half  
added the device to hal.
It's adding the wmaster0 device (for being an access point) to hal, but  
not wlan0.

0: udi = '/org/freedesktop/Hal/devices/net_00_0d_f0_17_33_ba'
   info.udi = '/org/freedesktop/Hal/devices/net_00_0d_f0_17_33_ba'  (string)
   linux.subsystem = 'net'  (string)
   linux.hotplug_type = 2  (0x2)  (int)
   net.interface_up = false  (bool)
   net.arp_proto_hw_id = 801  (0x321)  (int)
   net.linux.ifindex = 7  (0x7)  (int)
   net.address = '00:0d:f0:17:33:ba'  (string)
   net.interface = 'wmaster0'  (string)
   net.physical_device = '/org/freedesktop/Hal/devices/pci_1814_201'   
(string)
   info.capabilities = { 'net' } (string list)
   info.category = 'net'  (string)
   info.parent = '/org/freedesktop/Hal/devices/pci_1814_201'  (string)
   linux.sysfs_path = '/sys/class/net/wmaster0'  (string)

I'm digging around through the source to try to work out if theres any  
other points that the wlan0 device is added, but any help would be great.

For the record, the change to your patch needed to be from
SET_NETDEV_DEV(net_dev, pci_dev->dev);
to
SET_NETDEV_DEV(net_dev, &pci_dev->dev);
_______________________________________________
NetworkManager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to