[PATCH]: send errno EBADF handling

Jouni Malinen j
Tue Oct 9 20:09:01 PDT 2007

On Tue, Oct 09, 2007 at 04:36:58PM -0700, Ted Merrill wrote:

> I'm starting with the possibly simplest (if least interesting)
> fix of a number of fixes from Atheros... 
> please let me know if i'm doing this in the right way to get this into the hostap mainline.

Thanks! Applied. Just a quick note on the coding style, though. I try to
keep source code lines at under 80 characters (and tab counting as 8
spaces), so I modified this patch to follow that. In general, I do not
mind doing this type of small edits when applying patches, but it may
speed up the process a bit if the submitted patches follow the same

> Regarding this fix:
> The Atheros engineers were perhaps working around some sort of software bug? 
> not clear if you'd get EBADF otherwise. 
> Never the less, closing the socket (perhaps no affect if it was bogus fd)
> and starting over is a not unreasonable recovery strategy...

I haven't seen EBADF myself in here, but the change itself looks

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list