How to share rfkill file descriptor between stations on same phy?

Johannes Berg johannes
Fri Jan 6 02:42:57 PST 2012

On Thu, 2012-01-05 at 11:04 -0800, Ben Greear wrote:
> I'm looking into decreasing duplicated file-descriptors in
> the netlink driver again.  Currently, every virtual station has
> an rfkill data structure, but it seems to me that really
> we only need one per phy.
> Does that seem like a valid assumption?
> Any suggestions on how to go about doing this?

Well ... If you look at the rfkill code in detail you'll find that it
doesn't even care about *which* WLAN device was blocked.


More information about the Hostap mailing list