[PATCH 5/6] wext: Use one global netlink socket instead of one per interface.

Ben Greear greearb
Sun Dec 5 00:09:13 PST 2010


On 12/04/2010 07:14 PM, Ben Greear wrote:
> On 12/04/2010 01:12 PM, Jouni Malinen wrote:

>> These should be stored in global data structure that is initialized in
>> global_init() handler (and that is the part that may be difficult to add
>> for driver_wext.c without breaking other driver wrappers). Sett
>> driver_nl80211.c for an example on how to maintain the global structure
>> and interface list (struct nl80211_global and use of global_init() and
>> init2()).
>
> Why?  There is no need to open netlink it until something creates a driver
> instance...and the ref-counting should take care of cleanup, etc.

Of course, I did break the ref-counting in that patch.  I'll send a new patch
as soon as I get a dozen inter-related bugs fixed & tested :P

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Hostap mailing list