LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* user defined hotplug events?
@ 2007-03-20 8:58 balagi
2007-03-20 14:28 ` Arjan van de Ven
0 siblings, 1 reply; 2+ messages in thread
From: balagi @ 2007-03-20 8:58 UTC (permalink / raw)
To: linux-kernel
Hello,
on my notebook, the built in wlan card uses the ipw2100 driver. On boot
time, the ipw2100 module is loaded and fires a hotplug "add" event.
The hotplug event configures the interface and starts wpa_supplicant and wpa_cli.
The ipw2100 chip can be enabled/disabled by a hardware switch, so i
only enabled it if i need a connection.
Now: even if the wlan hardware is disabled by the switch, wpa_supplicant tries
to get a connection. That's not fine...
The ipw2100 driver exports a switch state file in sysfs, but polling this file is not
fine also.
I want that it works as follows:
A state change of the hardware switch should fire a hotplug event, so that the
wpa_* programs are started if the switch is put on, and killed if the switch is put
off.
The ipw2100 driver already logs a state change of the switch in klog, so adding
a kobject_uevent should not be the major problem. But which KOBJ_* event enum
should be used? KOBJ_ONLINE, KOBJ_OFFLINE ?
Or new, user defined, ones?
Comments? Suggestions?
Thomas
"Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken"
http://www.klarmobil.de/index.html?pid=73025
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: user defined hotplug events?
2007-03-20 8:58 user defined hotplug events? balagi
@ 2007-03-20 14:28 ` Arjan van de Ven
0 siblings, 0 replies; 2+ messages in thread
From: Arjan van de Ven @ 2007-03-20 14:28 UTC (permalink / raw)
To: balagi; +Cc: linux-kernel
> Or new, user defined, ones?
there's always the "CHANGED" event.. it's very very generic and just
means "check my state for new stuff"....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-20 14:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-20 8:58 user defined hotplug events? balagi
2007-03-20 14:28 ` Arjan van de Ven
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).