* 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
* Re: hostap: handling device renames better
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
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2008-08-05 20:23 UTC (permalink / raw)
To: Dan Williams; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 379 bytes --]
On Tue, 2008-08-05 at 16:23 -0400, Dan Williams wrote:
> 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.
You can register a netdevice notifier and follow the renames. mac80211
does this for the debugfs dir.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hostap: handling device renames better
2008-08-05 20:23 ` Johannes Berg
@ 2008-08-05 20:27 ` Dan Williams
0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2008-08-05 20:27 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Tue, 2008-08-05 at 22:23 +0200, Johannes Berg wrote:
> On Tue, 2008-08-05 at 16:23 -0400, Dan Williams wrote:
>
> > 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.
>
> You can register a netdevice notifier and follow the renames. mac80211
> does this for the debugfs dir.
Ok, will look into this. Thanks!
Dan
^ 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