[PATCH 1/2] ctrl_iface: BSS command return FAIL on no data

Jouni Malinen j at w1.fi
Sun Jun 12 14:52:10 PDT 2016

On Wed, Jun 08, 2016 at 10:01:37PM +0300, Jonathan Afek wrote:
> The BSS supplicant command returns a 0 len reply when failing to
> pasrse some information for a BSS.
> This patch make the function wpa_supplicant_ctrl_iface_bss()
> return -1 on such cases instead of 0 and therefore the BSS command
> will return FAIL.
> This is important since when using udp control interfaces
> sending a 0 len reply does not send a reply at all and the
> control interface can wait forever (or until a timeout is reached)
> for a reply.

I guess this could be more likely fine than the 1/6 from the previous
set. That said, I'm dropping these two patches for now until we figure
out what to do with the UDP ctrl_iface backend and zero-length
responses. That really needs to work for other commands anyway..
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list