[PATCH v2 6/6] nl80211: Use global netlink objects.

Jouni Malinen j
Sat Oct 22 03:16:17 PDT 2011


On Thu, Oct 20, 2011 at 07:59:52PM -0700, Ben Greear wrote:
> On 10/20/2011 04:23 PM, Jouni Malinen wrote:
> > [PATCH 2/6] nl80211: Initialize global context with hostapd
> > is kind of ugly and if I understood correctly, missing the global deinit
> > call (unless 5/6 handles that somehow).. This should really be moved to
> > core hostapd code to get similar design to wpa_supplicant.
>  >
>  > I don't understand why
>  > [PATCH 3/6] nl80211: Validate global_init/deinit use
>  > would be needed.
> 
> I thought some more about 2 and 3.  Why not make the init deinit automatic,
> much as it is now for hostapd.  We can remove the global init/destruct
> hooks for nl80211 and just let the driver take care of creating the global
> struct when the first device is added, and destruct when the last one is
> destroyed.

I implemented that in hostapd to match the design in wpa_supplicant and
dropped these two patches.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list