* Re: mac80211_hwsim driver attribute
[not found] <20130403133802.GK2960@piware.de>
@ 2013-04-03 13:42 ` Johannes Berg
2013-04-03 13:44 ` Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2013-04-03 13:42 UTC (permalink / raw)
To: Martin Pitt; +Cc: John W. Linville, linux-wireless, dcbw
On Wed, 2013-04-03 at 13:38 +0000, Martin Pitt wrote:
> Hello John, hello Johannes,
>
> first, many thanks for this great mac80211_hwsim module! I am
> currently working on automatic test cases for the Linux network stack
> (wpa_supplicant, dhclient, NetworkManager, etc.), and this is of great
> help.
>
> One issue is that NetworkManager does not get along with these
> simulated interfaces:
>
> NetworkManager[24027]: <warn> /sys/devices/virtual/mac80211_hwsim/hwsim0/net/wlan1: couldn't determine device driver; ignoring...
>
> It calls udev_device_get_driver() on the net device (wlan0) (and
> failing that, on its parent), but that fails because hwsim doesn't
> have a driver attribute. My real intel wifi does:
>
> lrwxrwxrwx 1 root root 0 Apr 3 06:19 /sys/class/net/wlan0/device/driver -> ../../../../bus/pci/drivers/iwlwifi
>
> But /sys/class/net/wlan1/device/ only has the default "uevent" and
> subsystem link.
>
> Other drivers call something like pci_register_driver() or
> usb_register(), I figure those will register the driver symlink in
> sysfs? But admittedly I'm a kernel n00b, so I'd appreciate a hint
> where to look for.
>
> Thank you in advance!
>
> Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mac80211_hwsim driver attribute
[not found] <20130403133802.GK2960@piware.de>
2013-04-03 13:42 ` mac80211_hwsim driver attribute Johannes Berg
@ 2013-04-03 13:44 ` Johannes Berg
2013-04-08 9:01 ` Martin Pitt
1 sibling, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2013-04-03 13:44 UTC (permalink / raw)
To: Martin Pitt; +Cc: John W. Linville, linux-wireless, dcbw
Martin,
> /sys/class/net/wlan0/device/driver -> ../../../../bus/pci/drivers/iwlwifi
>
> But /sys/class/net/wlan1/device/ only has the default "uevent" and
> subsystem link.
I suspect this is because there's no real "device", and therefore no
real driver.
We do play with device_create() in hwsim, which was likely intended to
address something like this, but I have no idea how this should really
work.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mac80211_hwsim driver attribute
2013-04-03 13:44 ` Johannes Berg
@ 2013-04-08 9:01 ` Martin Pitt
0 siblings, 0 replies; 3+ messages in thread
From: Martin Pitt @ 2013-04-08 9:01 UTC (permalink / raw)
To: Johannes Berg; +Cc: John W. Linville, linux-wireless, dcbw
[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]
Hello Johannes,
Johannes Berg [2013-04-03 15:44 +0200]:
> Martin,
>
> > /sys/class/net/wlan0/device/driver -> ../../../../bus/pci/drivers/iwlwifi
> >
> > But /sys/class/net/wlan1/device/ only has the default "uevent" and
> > subsystem link.
>
> I suspect this is because there's no real "device", and therefore no
> real driver.
There are real devices (wlan0, wlan1, etc.); there is also a real
driver (mac80211_hwsim), the only thing that's a bit tricky is that
there is no real bus. My impression is that such devices might belong
to /sys/bus/platform/ ?
> We do play with device_create() in hwsim, which was likely intended to
> address something like this, but I have no idea how this should really
> work.
I figured it out, it works well now. I'll send the patch to the
lists/maintainers, and CC: Dan and you.
Thanks,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-08 9:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20130403133802.GK2960@piware.de>
2013-04-03 13:42 ` mac80211_hwsim driver attribute Johannes Berg
2013-04-03 13:44 ` Johannes Berg
2013-04-08 9:01 ` Martin Pitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).