[Internal-wifi-devel] [PATCH] [supplicant] wpa_cli: correct return value of wpa_cli_cmd_p2p_peers

Spinadel, David david.spinadel at intel.com
Thu Nov 24 02:58:16 EST 2011



> -----Original Message-----
> From: Guy, Wey-Yi W
> Sent: Wednesday, November 23, 2011 7:26 AM
> To: Spinadel, David
> Cc: internal-wifi-devel at linux.intel.com
> Subject: Re: [Internal-wifi-devel] [PATCH] wpa_cli: correct return value of
> wpa_cli_cmd_p2p_peers
> 
> Hi David,
> 
> Could you please add [supplicant] to the "subject", so we can easily identify
> the patch.
> 
> btw, the patch looks right to me, but it is not my area so I am not sure :-)
> 
> Thanks
> Wey
> 
> On Tue, 2011-11-22 at 22:09 -0800, Spinadel, David wrote:
> > wpa_cli: correct return value of wpa_cli_cmd_p2p_peers.
> >
> > Signed-off-by: David Spinadel <david.spinadel at intel.com>
> > ---
> 
> > wpa_supplicant/wpa_cli.c |    4 ++--
> 
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index
> > 9439856..14cd84c 100644
> > --- a/wpa_supplicant/wpa_cli.c
> > +++ b/wpa_supplicant/wpa_cli.c
> > @@ -2092,13 +2092,13 @@ static int wpa_cli_cmd_p2p_peers(struct
> > wpa_ctrl *ctrl, int argc, char *argv[])
> >
> >          if (wpa_ctrl_command_p2p_peer(ctrl, "P2P_PEER FIRST",
> >                                        addr, sizeof(addr),
> > discovered))
> > -               return 0;
> > +               return -1;
> >          do {
> >                  os_snprintf(cmd, sizeof(cmd), "P2P_PEER NEXT-%s",
> > addr);
> >          } while (wpa_ctrl_command_p2p_peer(ctrl, cmd, addr,
> > sizeof(addr),
> >                           discovered) == 0);
> >
> > -       return -1;
> > +       return 0;
> > }
> >
> >
> > --
> > 1.7.1
> >
> 

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


More information about the HostAP mailing list