]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - connect.c
iw: separate wait/print when waiting for an event
[thirdparty/iw.git] / connect.c
index 4a847a11671ff550f7ee92ac34e3339d9a4938bd..3237a277dca3579c9135fa6429c1538fd78f5dc4 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -154,7 +154,10 @@ static int iw_connect(struct nl80211_state *state,
         * Alas, the kernel doesn't do that (yet).
         */
 
-       __do_listen_events(state, ARRAY_SIZE(cmds), cmds, &printargs);
+       __do_listen_events(state,
+                          ARRAY_SIZE(cmds), cmds,
+                          ARRAY_SIZE(cmds), cmds,
+                          &printargs);
        return 0;
 }
 TOPLEVEL(connect, "[-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465] [mfp:req/opt/no]",