]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Add BSSID tab completion for set bssid_filter
authorJouni Malinen <j@w1.fi>
Sun, 5 May 2013 09:20:35 +0000 (12:20 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 5 May 2013 09:20:35 +0000 (12:20 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/wpa_cli.c

index d01a5a44e6a6eef3ec84f8d2254a31b186cae290..47a596e95627f037eb371a00838047f2c2f61ec3 100644 (file)
@@ -631,6 +631,9 @@ static char ** wpa_cli_complete_set(const char *str, int pos)
                return res;
        }
 
+       if (arg > 1 && os_strncasecmp(str, "set bssid_filter ", 17) == 0)
+               return cli_txt_list_array(&bsses);
+
        return NULL;
 }