]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Get rid of compiler warning
authorJouni Malinen <j@w1.fi>
Fri, 29 Mar 2013 19:24:10 +0000 (21:24 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 29 Mar 2013 19:24:10 +0000 (21:24 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

wlantest/wlantest_cli.c

index e932be199605da6c4538b33242f511125bff39a9..a531b60ef4c0b9a99c85286952018f028094381b 100644 (file)
@@ -1213,7 +1213,6 @@ static int cmd_add_wepkey(int s, int argc, char *argv[])
 {
        u8 resp[WLANTEST_CTRL_MAX_RESP_LEN];
        u8 buf[100], *pos, *end;
-       size_t len;
        int rlen;
 
        if (argc < 1) {
@@ -1221,7 +1220,6 @@ static int cmd_add_wepkey(int s, int argc, char *argv[])
                return -1;
        }
 
-       len = os_strlen(argv[0]);
        pos = buf;
        end = buf + sizeof(buf);
        WPA_PUT_BE32(pos, WLANTEST_CTRL_ADD_PASSPHRASE);