]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
fix stupid bug
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 16 Jan 2008 00:11:12 +0000 (01:11 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 16 Jan 2008 00:11:12 +0000 (01:11 +0100)
iw.c

diff --git a/iw.c b/iw.c
index c6e47eb3e4509637c6fb5d082232aa52dd54ee4e..bff5f4b78fe2f8931284f4249129e502fc2adecb 100644 (file)
--- a/iw.c
+++ b/iw.c
@@ -140,7 +140,7 @@ int main(int argc, char **argv)
 
        if (strcmp(type, "interface") == 0)
                err = handle_interface(&nlstate, phyname, ifname, argc, argv);
-       if (strcmp(type, "info") == 0)
+       else if (strcmp(type, "info") == 0)
                err = handle_info(&nlstate, phyname, ifname);
        else {
                fprintf(stderr, "No such object type %s\n", type);