[PATCH 5/6] wext: Use one global netlink socket instead of one per interface.
Johannes Berg
johannes
Tue Dec 7 01:44:11 PST 2010
On Mon, 2010-12-06 at 17:21 -0800, Ben Greear wrote:
> drv->nl_handle = nl80211_handle_alloc(drv->nl_cb);
> if (drv->nl_handle == NULL) {
> wpa_msg(drv->ctx, MSG_ERROR, "nl80211: Failed to allocate netlink "
> "callbacks");
> goto err2;
> }
>
> drv->nl_handle_event = nl80211_handle_alloc(drv->nl_cb);
> if (drv->nl_handle_event == NULL) {
> wpa_msg(drv->ctx, MSG_ERROR, "nl80211: Failed to allocate netlink "
> "callbacks (event)");
> goto err2b;
> }
>
> Any reason we can't make these global as well?
Those can be global as well I think, but there's an outstanding patch
from me on this list that adds a socket for some P2P operations ... you
may want to work on top of that in fact, at least I'm hoping Jouni will
apply it eventually :)
johannes
More information about the Hostap
mailing list