On Wed, 2015-12-16 at 06:11 -0800, Ben Greear wrote:
> 
> > You can query the ID/index already through the netlink API, or even
> > from sysfs since the virtual device name is essentially
> >     sprintf(name, "hwsim%d", idx)
> 
> Good lord, please don't even suggest parsing the name.  You can
> easily rename a phy device.  I do it all the time to keep a phyname
> associated with a real radio through module reloads.
> 

You're confusing the wiphy name and the hwsim virtual class device name
(which you can't touch) :)

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to