public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* hostap: handling device renames better
@ 2008-08-05 20:23 Dan Williams
  2008-08-05 20:23 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2008-08-05 20:23 UTC (permalink / raw)
  To: linux-wireless

Hi,

While trying to flash my Prism 2.5 card today, I ran into a problem
that'll probably hit quite a few drivers (mostly older ones).

udev renames the interface after probing, but anything the driver set up
manually at probe/init time (in this case /proc/net/hostap/wifi0/pda)
will still be using the old device name.  Thus the prism2_srec tool
refused to work because it needs both the PDA from /proc/net/hostap/...
as well as some ioctls on the device.  Unfortunately, the device names
are different due to udev's renaming.

How are drivers made aware that their device's name has changed so they
could potentially update things they stick in /proc or wherever?  hostap
and airo come to mind as current users of /proc.

Dan

(ideally this stuff should be migrated to the device's sysfs directory,
not live in /proc/net)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-05 20:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 20:23 hostap: handling device renames better Dan Williams
2008-08-05 20:23 ` Johannes Berg
2008-08-05 20:27   ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox