[PATCH 5/7] hostap: Ensure netlink recv buf size is large enough.

Jouni Malinen j
Sat Jul 7 08:16:02 PDT 2012


On Fri, Jul 06, 2012 at 09:52:39AM -0700, greearb at candelatech.com wrote:
> I was getting this error on wpa_supplicant startup when configured
> for 200+ stations:
> 
> 1333514002.074458: netlink: recvfrom failed: No buffer space available
> 
> So, increase rcv buffer size to 1MB so we don't drop netlink
> packets.

This looks like a very special corner case and unnecessary (and
potentially undesired) change for more common use cases. If there is a
megabyte of pending netlink messages in the buffer, something has went
seriously wrong for normal use case and it sounds like a better idea to
drop the messages than try to keep collecting more of them.

If this is needed for special cases, it would sound more reasonable to
increase the buffer once a huge number of virtual interfaces is enabled
at the same time.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list