More on Atheros.

Joe Shaw joeshaw at novell.com
Thu Jun 3 12:13:52 PDT 2004


On Thu, 2004-06-03 at 01:59 -0400, Pat Suwalski wrote:
> I've made a few discoveries about the Atheros problem.
> 
> net_class_compute_udi() returns:
> 
> 	/org/freedesktop/Hal/devices/net-(null)
> 
> This is because "net.interface" is "(null)" in many places, though it is 
> correctly set to "ath0" in net_class_pre_process().

The latest code in CVS uses "net.address" for the UDI.  I'm not sure
that really changes anything though.

> This is also why there are ioctl errors. The ioctl() function is passed 
> a blank interface name. Replacing iface and ifname with "ath0" 
> everywhere still causes an eventual segfault, but it seems that the 
> ioctl()s succeed.

Yeah, this is an issue.  It should be getting the interface name from
class_device->name in net_class_pre_process().  Can you use gdb to break
in that function and post the output of "print *class_device" ?

> Is it reasonable to assume that whatever is causing the device name to 
> go wonky is responsible for the segfault?

Yeah.  The interface should be set there; I'm not sure why libsysfs
wouldn't set it.

> Well, it's way past my bedtime. I'm going to sleep.

Thanks for your help,
Joe


_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list