]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
fix "command not found" code
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 17 Sep 2008 08:20:09 +0000 (10:20 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 17 Sep 2008 08:20:09 +0000 (10:20 +0200)
iw.c

diff --git a/iw.c b/iw.c
index bba3e6f645ba4d927dc37f36e3fd7bc78fb7d82c..e09d975e2d5b9ce1b279bbd63fd00dd8bded0233 100644 (file)
--- a/iw.c
+++ b/iw.c
@@ -210,7 +210,7 @@ static int handle_cmd(struct nl80211_state *state,
                break;
        }
 
-       if (cmd == &__stop___cmd)
+       if (cmd >= &__stop___cmd)
                return 1;
 
        msg = nlmsg_alloc();