wpa_cli quirks?

Kel Modderman kelrin
Thu Mar 2 13:16:24 PST 2006


Kel Modderman wrote:

> Hi,
>
> I'd like to query the handling of wpa_cli commands executed as 
> arguments, rather than  from within the wpa_cli console. Are they 
> handled differently as in the following example?
>
>
> root at KELSLAP:/home/kel# wpa_cli -i eth1 set_network 1 ssid "kelnet"
> FAIL

RX ctrl_iface - hexdump_ascii(len=25):
     53 45 54 5f 4e 45 54 57 4f 52 4b 20 30 20 73 73   SET_NETWORK 0 ss
     69 64 20 6b 65 6c 6e 65 74                        id kelnet
CTRL_IFACE: SET_NETWORK id=0 name='ssid' value='kelnet'
Line 0: failed to parse ssid 'kelnet'.
CTRL_IFACE: Failed to set network variable 'ssid' to 'kelnet'


> root at KELSLAP:/home/kel# wpa_cli -i eth1
> wpa_cli v0.5.1
> Copyright (c) 2004-2006, Jouni Malinen <jkmaline at cc.hut.fi> and 
> contributors
>
> This program is free software. You can distribute it and/or modify it
> under the terms of the GNU General Public License version 2.
>
> Alternatively, this software may be distributed under the terms of the
> BSD license. See README and COPYING for more details.
>
>
> Interactive mode
>
> > set_network 1 ssid "kelnet"
> OK
> >
>

RX ctrl_iface - hexdump_ascii(len=27):
     53 45 54 5f 4e 45 54 57 4f 52 4b 20 30 20 73 73   SET_NETWORK 0 ss
     69 64 20 22 6b 65 6c 6e 65 74 22                  id "kelnet"
CTRL_IFACE: SET_NETWORK id=0 name='ssid' value='"kelnet"'
ssid - hexdump_ascii(len=6):
     6b 65 6c 6e 65 74                                 kelnet


There seems to be an extra bit on the end of the hexdump when the 
command is issued from within the console. I have no idea why.

Thanks, Kel.




More information about the Hostap mailing list